first of all sorry for bad english.
Is it possible to split the numbers into half in my array list ?
I added each  number using .add
public static void main(String[] args) {
    ArrayList<Integer> num = new ArrayList<>();
    num.add(24);
    num.add(18);
    num.add(12);
    num.add(8);
    num.add(20);
    System.out.println(num);
  
    
}          
Output: [24,18,12,8,20]
I want to split it into half like this: [12,12,9,9,6,6,4,4,10,10]
 
     
     
     
    