Comment on Tutorial - How to use ArrayList in Java By Hong



Comment Added by : ADC

Comment Added at : 2010-02-25 18:43:32

Comment on Tutorial : How to use ArrayList in Java By Hong
I entered four different objects into an ArrayList using the add function.

when I want to list the contents as per your example, the most recent entry appears to occupy all four positions in the list.

This cannot be. Do you know what the source of the problem is?


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. How can i add all the values of an multidimensiona
View Tutorial          By: jolly at 2015-04-11 11:54:47

2. Hi, this was useful. how can integrate j2me progra
View Tutorial          By: karthik at 2013-01-23 10:02:02

3. its good
View Tutorial          By: sumanth at 2010-04-10 20:10:00

4. i think i can use it in my project in IT.
<

View Tutorial          By: jamesmae amado at 2013-11-17 13:42:58

5. hey thats a superb way of explaining in plain term
View Tutorial          By: Agastya at 2011-05-08 03:11:53

6. i have connected my phone through bluetooth using
View Tutorial          By: nikitha at 2013-02-06 05:05:04

7. Please some one send me the 6th program developed
View Tutorial          By: mounika at 2008-04-25 02:49:56

8. please help me how to run this program..
View Tutorial          By: khairie at 2009-12-01 22:43:08

9. Good Luck....
View Tutorial          By: nagarajan at 2011-06-19 03:55:49

10. The xml listed above will allow ANY domain to exec
View Tutorial          By: Mark McWhirter at 2012-10-09 05:58:14