This i did by coverting it to character array and then sorted it (if there is any other approach please do let me know)
Do not wait to strike till the iron is hot; but make it hot by striking....
deepak carter wrote:
String s={"tcs","wipro","cognizant"}
how to sort this without using sort method
String[] s={"tcs","wipro","cognizant"}
java.util.Arrays.sort(s);
how to sort this without using sort method
Do not wait to strike till the iron is hot; but make it hot by striking....
deepak carter wrote:
how to sort this without using sort method
Arian Gerryts wrote:
Venkat basa wrote:hi...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Seetharaman Venkatasamy wrote:
Arian Gerryts wrote:
why this switching array to list. Again Collections.sort will do a switch from list to array and then it use again Arrays.sort