i have two array
String a[]={"11","02","43","24","05","86","37","28","29","10"};
String b[]={"a","c","f","q","w","x","z","x","s","r"};
i want to sort array a[] in ascending order
and the result may like
String a[]={"02","05","10","11","24","28","29","37","43","86"};
String b[]={"c","w","r","a","q","x","s","z","f","x"};
how can i get result like above using java? any sorting method available in java?
Mapyou need.Mapis that much better when you consider there's a map that keeps its keys sorted:TreeMap.cannotI meant it wouldn't befeasiblesolution enough. It's like living anAncient lifein themodern world.