permaculture playing cards*
The moose likes Beginning Java and the fly likes dynamic array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dynamic array" Watch "dynamic array" New topic

dynamic array

ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
i am creating dynamic array

I got null pointer exception

String [][] a = null ;

how can i create dynamic array
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37874
What's a dynamic array?

You have initialised your array to null and tried to use it. No wonder you have a NullPointerException.
I agree. Here's the link:
subject: dynamic array
Similar Threads
Possibility for (Custom type objects) & (object arrays) in Form Bean
How to pass dynamic array content from javascript to jsp
Response as PDF
comparing and sorting arraylist of arraylist
Garbage collection - arrays