List of Arrays in Java

What is the syntax for making a List of arrays in Java?

I have tried the following:

List<int[]> A = new List<int[]>();

and a lot of other things.

I need to be able to reorder the int arrays, but the elements of the int arrays need not to be changed. If this is not possible, why?

Thank you.

Answers


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[]>();

Need Your Help

Get url directed/from with Codeigniter

php codeigniter url

How can I find the URL being directed from (ie the page the user is on before controller executes)?

Delete a folder in my local repo and my bitbucket repo

git bitbucket

I am working with a bibucket git and everything works very well.I have the main repo called php on bitbucket.I cloned the repo and inside the local repo,i created a folder called oop and inside it i

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.