Usage of Arraylists in Java

M

Marcin Rze¼nicki

Hello Friends,

I wrote a function yesterday, and defined an String array there. I
defined it like,

String[] arr = null;

No error was shown by my IDE.

Because there is no error in this line. Initializing reference to null
is always valid.

I thought to move ahead. But when I
tried to increase the size of my array, I was caught.

??

Now I learned the difference b/w Array & an Array List.

Read more ..http://www.ezdia.com/How_to_use_Array_List_in_Java/Content.do?id=1022

??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top