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. pls give me example of stack class with postfix me
View Tutorial          By: uchiha at 2011-09-16 04:02:57

2. Please send me working code and setup,,My mail id
View Tutorial          By: Karthik at 2012-03-30 19:56:35

3. Hello friends can anybody tell me how to assign in
View Tutorial          By: gnvkdramesh at 2010-09-10 04:27:46

4. it was very helpful to fix one obscure bug
View Tutorial          By: ander13 at 2009-06-30 04:51:47

5. can any body help to get the code for receiving SM
View Tutorial          By: ash at 2008-05-15 01:07:19

6. i run this program. its not showing any runtime or
View Tutorial          By: anand sp at 2011-03-07 10:11:37

7. my question is the same of sajjad.what about (!iss
View Tutorial          By: hossain at 2012-04-26 04:28:56

8. better
View Tutorial          By: sanjeev at 2010-06-12 10:38:04

9. its nice example for beginers
View Tutorial          By: Ramesh at 2012-02-15 18:13:09

10. pls send to me comm.jar file , its not in sun si
View Tutorial          By: sanjeewa at 2010-04-18 23:17:37