Skip to content

Instantly share code, notes, and snippets.

@akbarsha03
Created July 11, 2014 06:41
Show Gist options
  • Save akbarsha03/980621b2c0a0a2d60b55 to your computer and use it in GitHub Desktop.
Save akbarsha03/980621b2c0a0a2d60b55 to your computer and use it in GitHub Desktop.
Split string using comma
String str = "hi,hello,abc,example,problems";
String[] splits = str.split(",");
System.out.println("splits.size: " + splits.length);
for(String asset: splits){
System.out.println(asset);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment