Skip to content

anonymous /gist:4108479
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.