List of Arrays in Java

Firstly, you can’t do new List(); it is an interface.

To make a list of int Arrays, do something like this :

List<int[]> myList = new ArrayList<int[]>();

P.S. As per the comment, package for List is java.util.List and for ArrayList java.util.ArrayList

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)