Comment on Tutorial - How to use Iterator in Java By Fazal



Comment Added by : Nelson

Comment Added at : 2009-08-17 09:13:28

Comment on Tutorial : How to use Iterator in Java By Fazal
I'm a beginner, and I was told it is a good practice to use:

List <String>list = new ArrayList<String>();

I mean, to put the interface "List" to the left of '=', and not the implementation "ArrayList".

Thanks for letting me learn how to traverse the collection backwards!!!


View Tutorial



Related Tutorials

Java program to get location meta data from an image

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

Archived Comments

1. Thanks! It worked fine for me.
View Tutorial          By: John Franklin at 2009-04-02 10:37:44

2. through this i understand functional overloading e
View Tutorial          By: mahwash at 2012-09-19 15:29:21

3. I have an error on step 0:

recipien

View Tutorial          By: xenogaz at 2009-01-28 02:43:50

4. ok this is gud example to build an abstract class.
View Tutorial          By: ashish at 2011-12-01 06:22:32

5. java program to maintain the books details like Bo
View Tutorial          By: Prabha at 2013-08-28 12:34:00

6. Good Introduction to start j2me.thanks
View Tutorial          By: Ravinder Kasarla at 2008-12-26 06:59:29

7. I have maked all you said and when I open jsp I am
View Tutorial          By: John at 2013-01-10 14:21:30

8. Thanks for the above description, but pls let me k
View Tutorial          By: Amit Goyal at 2009-09-25 05:33:10

9. a very good explanation
View Tutorial          By: ramakrishna at 2012-12-20 04:06:12

10. really friends its very useful site for java begin
View Tutorial          By: shekhar at 2011-05-21 03:04:32