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. pritnt
1 2 3 4 5

View Tutorial          By: osama at 2013-02-05 03:16:15

2. the reason for this is quite simple: java expands
View Tutorial          By: vineeth at 2011-08-25 13:54:37

3. hi to all i m getting this error plz solve it and
View Tutorial          By: krishna prasad at 2011-10-28 10:16:26

4. how to run this program? give sample code to cre
View Tutorial          By: meena at 2012-01-12 11:52:03

5. Good example to know the concept better.
View Tutorial          By: ARAVIND L at 2009-01-05 04:07:46

6. what are the required equipments to run j2me
View Tutorial          By: messi at 2012-11-13 13:15:18

7. How to fetch a value from a database in dropdown b
View Tutorial          By: lara at 2014-11-19 09:02:43

8. Hi, please do you know how can i use a cel connect
View Tutorial          By: nobody at 2010-04-06 20:25:54

9. Been looking at several website for a clear explan
View Tutorial          By: Jase at 2011-08-09 12:00:10

10. simply nice.. Thank you.
View Tutorial          By: Anil at 2011-11-30 06:36:23