Created
July 11, 2014 06:41
-
-
Save akbarsha03/980621b2c0a0a2d60b55 to your computer and use it in GitHub Desktop.
Split string using comma
This file contains hidden or 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
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