File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dynamic array" Watch "dynamic array" New topic
Author

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 ;
a[0][0]="hi";

how can i create dynamic array
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39386
    
  28
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: http://aspose.com/file-tools
 
subject: dynamic array