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



Ask a Question

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. Nice Example...!
View Tutorial          By: Kuldeep Singh at 2009-10-18 23:58:17

2. My Page URL- http://localhost:8080/WebApplication1
View Tutorial          By: aMIT sURI at 2012-05-12 10:43:21

3. i searched a lot of sites but found the answer her
View Tutorial          By: ALIEN ATTACK at 2012-01-09 09:39:36

4. Hi,
I want to write an Android Application,

View Tutorial          By: Kara at 2014-11-20 07:39:03

5. its really helpful.thanks a lot
View Tutorial          By: bena at 2015-03-04 10:39:46

6. hi i want to send a message from my site to a phon
View Tutorial          By: dinesh at 2009-09-16 10:25:37

7. Pastoral College is a small college in the Midwest
View Tutorial          By: James Chui at 2015-08-03 00:48:50

8. How about using stack in microprocessor subj.??? d
View Tutorial          By: Private at 2015-08-18 01:43:18

9. It is very useful ....Thank U sooo much dear...
View Tutorial          By: Augustine Francis at 2014-06-24 16:55:21

10. Best Example for Inheritance. Thank lot!

View Tutorial          By: Periyasamy C Chennai at 2010-07-09 01:35:30