El código no compila, sale el siguiente error:
error:
cannot find symbol
lista1.add(miArray1);
symbol: method add(int[])
location: variable lista1 of type int[]
1 error
-------------------------------------------------------------------------------
error: no suitable method found for add(int[])
lista1.add(miArray1);
method ArrayList.add(int,Integer) is not applicable
(actual and formal argument lists differ in length)
method ArrayList.add(Integer) is not applicable
(actual argument int[] cannot be converted to Integer by method invocation conversion)
method AbstractList.add(int,Integer) is not applicable
(actual and formal argument lists differ in length)
method AbstractList.add(Integer) is not applicable
(actual argument int[] cannot be converted to Integer by method invocation conversion)
method AbstractCollection.add(Integer) is not applicable
(actual argument int[] cannot be converted to Integer by method invocation conversion)
1 error
------------------------------------------------------------------------------------
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: java.util.ArrayList.add
at TestArray.main(TestArray.java:29)
Java Result: 1