Source Code:
(back to article)
Submit
Result:
Report an issue
public class StringSplitTest { public static void main(String[] arg){ String str = "Hello:world:hello"; String split[] = str.split("e", 5); for(String s:split) System.out.println(s); } }