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



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. The code to show recursion is ok, but the declara
View Tutorial          By: Gaurav at 2010-08-08 01:08:27

2. I am wanting to use a Honeywell 4600g handheld sca
View Tutorial          By: bugdrvr1970 at 2012-01-25 17:27:43

3. Thank you
View Tutorial          By: Angeline at 2011-06-28 06:27:12

4. Hi i have created the 5 files and in main program
View Tutorial          By: Anandkumar at 2011-09-10 05:13:59

5. Really helpful way of explanation..And the example
View Tutorial          By: pavan at 2010-04-17 03:10:58

6. hi, i would like to know about sms sendimg via web
View Tutorial          By: abhi at 2008-07-09 07:28:54

7. Okay, this article cleared my two doubts i.e. Use
View Tutorial          By: Shrikrishna Meena at 2010-09-26 12:38:04

8. hi i have doubt in strlen()........pls explain how
View Tutorial          By: ranjith at 2010-04-18 21:50:17

9. can we do it this procedure by iteration i know th
View Tutorial          By: sattar at 2010-05-03 03:00:20

10. A good tutorial! Hope this would help the JSP deve
View Tutorial          By: geetha at 2008-09-12 04:17:14