0

How can I insert 2D array into 2D linked list ?

JPanel[][] cells; // It is my 2D array and I put something inside it

LinkedList<JPanel> Jpanel = new LinkedList<>(); // It is my 2D Linked List

I want to insert cell into Jpanel. But when I write like this it couldnt work.

Jpanel.add(cells);

0 Answers0