How i can make an array of the five most popular elements in an another array? :  
 `int[] a ={1, 2, 5, 2, 4, 6, 8, 9, 1, 19};
    int[] fiveMostPopular = new int[5];

for(int i=0; i<5;i++){
      System.out.println(fiveMostPopular[i]);
      }`