Desire 2 Code
Stay Hungry. Stay Foolish. - Steve Jobs
Monday, October 11, 2010
Split Function (Java)
This function is used to break a string into multiple sub strings using a particular special character as a delimiter.
String str = "i-am-a-good-boy";
String[] temp;
String delimiter = "-";
temp = str.split(delimiter);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment