public
anonymous / gist:4108479
Created

  • Download Gist
gistfile1.java
Java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
package split;
public class Split {
public static void main(String[] args) {
System.out.println(splitstring("hello name is George", 0));
}
 
static String []a = new String[1000000];
public static Class<split.a[]> splitstring(String sentence, int i){
sentence= sentence.substring(i,i+1);
if( sentence.equals(" ")){
a[i] = ",";
}
else{
a[i] = sentence;
}
while(sentence.length() >=0){
Class<split.a[]> splitstring;
splitstring = splitstring(sentence.substring(i+1, i+2), i+1);
}
return a[].class;
}
 
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.