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. thank you, this best for student like us,
View Tutorial          By: Srinath at 2012-05-12 15:04:03

2. Hi,
how can make a report to display one re

View Tutorial          By: david at 2013-08-30 16:09:23

3. hi please help me out.. how to use this card for r
View Tutorial          By: sasivarnan at 2011-04-27 15:01:12

4. Hi,

I tried this script with noki

View Tutorial          By: sravan at 2009-07-11 11:17:45

5. hello Ramlak I am getting Error Time Out At Step 6
View Tutorial          By: hardik at 2011-04-13 05:12:06

6. Sir your example is god
but i am surprisin

View Tutorial          By: Ata Ul Nasar at 2011-06-05 16:23:09

7. The result shown in the left shift is wrong...
View Tutorial          By: krishnalal.K.K at 2008-05-21 03:05:07

8. i like this site.good explanation,but it is good f
View Tutorial          By: mamata at 2010-08-16 05:22:53

9. good
View Tutorial          By: qwerty at 2014-02-14 07:37:08

10. hi can u send me the complete working code for sen
View Tutorial          By: Amit Adhikaree at 2011-03-22 17:47:49