Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bakir Farooq   on Jun 02 In Java Category.

  
Question Answered By: Freda Lane   on Jun 02

That is because you declare your data  array without actually initializing it:

Object[][] data;

Should become:

Object[][] data = new Object[x][y];

Where x and y are the size of your multi-dimensional array.

Share: 

 
 
Didn't find what you were looking for? Find more on Intializing data variable error? Or get search suggestion and latest updates.


Tagged: