You are viewing a single comment's thread. Return to all comments →
****Can anyone suggest me. Why is't not clearing the Test case 6?****
static String[] bigSorting(String[] str)
{ Arrays.sort(str,new Comparator() { @Override public int compare(String s1, String s2) { if(s1.length()==s2.length()) return s1.compareTo(s2); return s1.length()-s2.length(); } });
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
****Can anyone suggest me. Why is't not clearing the Test case 6?****
{ Arrays.sort(str,new Comparator() { @Override public int compare(String s1, String s2) { if(s1.length()==s2.length()) return s1.compareTo(s2); return s1.length()-s2.length(); } });