You are viewing a single comment's thread. Return to all comments →
String smallest = ""; String largest = ""; String []a= new String[s.length()-k+1]; for(int i=0;i0){ largest=a[i]; } if(a[i].compareTo(smallest)<0){ smallest=a[i]; } }
Seems like cookies are disabled on this browser, please enable them to open this website
Java Substring Comparisons
You are viewing a single comment's thread. Return to all comments →
String smallest = ""; String largest = ""; String []a= new String[s.length()-k+1]; for(int i=0;i0){ largest=a[i]; } if(a[i].compareTo(smallest)<0){ smallest=a[i]; } }