package arrays;

 

import java.util.Arrays;

 

public class ArraySort {

    public static void main(String[] args) {

        double[] nums = new double[10000000];

        for (int i = 0; i < 10000000; i++) {

            nums[i] = Math.random();

        }

        long start = System.currentTimeMillis();

        Arrays.parallelSort(nums);

        //Arrays.sort(nums);

        System.out.println(System.currentTimeMillis()-start);

       

    }   

   

}

 

 

 

Class<String> clz = String.class;

for (Method m : clz.getDeclaredMethods()) {

   System.out.println(m.getName());

   for (Parameter p : m.getParameters()) {

      System.out.println(p.getName());

   }

}