1. public void genNumbers() {2. ArrayList numbers = new ArrayList();3. for (int i=0; i<10; i++) {4. int value = i * ((int) Math.random());5. Integer intObj = new Integer(value);6. numbers.add(intObj);7. }8. System.out.println(numbers);9. }