Skip to content

Instantly share code, notes, and snippets.

@khan5v
Created September 18, 2017 08:39
Show Gist options
  • Save khan5v/9c8534a570aa1885c90763454af9d2af to your computer and use it in GitHub Desktop.
Save khan5v/9c8534a570aa1885c90763454af9d2af to your computer and use it in GitHub Desktop.
String utils
// 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