Created
September 18, 2017 08:39
-
-
Save khan5v/9c8534a570aa1885c90763454af9d2af to your computer and use it in GitHub Desktop.
String utils
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To join list of srings on a delimiter | |
List<String> l = new ArrayList<>(); | |
String.join("+", l); | |
// To split based on control character | |
String[] strings = br.readLine().split("\\+"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment