int data [] = new int [] {1,5,6,2,3,4,9,8,7,10};java.util.Arrays.sort(data);System.out.println(data);