I\'m trying to use the java.util.Arrays class in JavaSE 6 but not sure how i would implement it? on an array that I have generated?
before the start of the class i
public static void main(String[] args) { double array[] = {1.1,2.3,5.6,7.5, 12.2, 44.7,4.25, 2.12}; Arrays.sort(array,1,3); for(int i =0;i
result:
"1.1,2.3,5.6,7.5,12.2,44.7,4.25,2.12"