Source Code:
(back to article)
Submit
Result:
Report an issue
9
1
2
3
4
5
6
›
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); } }
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); } }