The code creates an array, but doesn't instantiate the objects of that array
JPanel[] panels = new JPanel[1];
panels[0].add(new JComponent());//throws a null pointer exception because...
Type: Posts; User: copeg
The code creates an array, but doesn't instantiate the objects of that array
JPanel[] panels = new JPanel[1];
panels[0].add(new JComponent());//throws a null pointer exception because...
What is the question?