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



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. please give example code with defined variable.
View Tutorial          By: shajjad at 2011-02-13 20:56:09

2. Your code will not execute using above main method
View Tutorial          By: Gajanan Patil at 2012-05-09 04:42:29

3. how to code for images hitting in jsp like googl
View Tutorial          By: Kumaravel at 2014-08-06 11:23:08

4. very useful example. Thanks for this help.
View Tutorial          By: Saurabh at 2010-04-23 04:50:13

5. how we can store a pdf file into database

View Tutorial          By: neelima at 2010-03-10 23:46:52

6. Enough to understand basic concept.Thanks.
View Tutorial          By: Jyothylakshmy P u at 2012-09-18 05:35:48

7. If i run this program----



View Tutorial          By: pratham at 2010-09-22 10:10:11

8. Very good explanation along with the example. Can
View Tutorial          By: Divya at 2010-09-21 03:05:10

9. it would be very helpful if you demonstrated how t
View Tutorial          By: newcoder at 2011-10-24 17:40:25

10. somebody help me doing my case study .. its a rese
View Tutorial          By: lady at 2013-12-25 08:21:03