Me n My Programming

If Only I Have TIme

Difference between List and ArrayList

I was doing my graph path and try to return list of path using string. It work fine but I was thinking of improving it using ArrayList. After a while I remember that I may have similar function as List method. In fact I did remember that it is much more simpler to use List. So I start to google around and found out that List is way better than ArrayList.

The (major) difference is List require less memory space than ArrayList but it is specific to a single type. With ArrayList, you can insert from int to string without problem (the problem will came when you want to display it :p)

Here are the references that I read:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


This entry was posted on March 21, 2009 by in Uncategorized and tagged .
%d bloggers like this: