Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:4108479
Created Nov 19, 2012

What would you like to do?
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] = ",";
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