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. I'm sorry but your closing statement...

View Tutorial          By: Al Scherer at 2009-09-15 09:33:24

2. very easy way for understanding the java programmi
View Tutorial          By: praveen chandrakar at 2010-10-14 20:26:53

3. Hi ,

Is there any way to export con

View Tutorial          By: Nithya Duraiswamy at 2009-03-03 21:32:05

4. i wish to get some example java programs to unders
View Tutorial          By: rebecca at 2010-01-09 03:14:42

5. char *s;
s=(char *) melloc(sizeof(char)*3);

View Tutorial          By: URS at 2011-08-24 12:32:55

6. very good
View Tutorial          By: pravin gajbhiye, nagpur at 2010-05-24 01:43:30

7. Thanks :)
View Tutorial          By: Anuj Bhatnagar at 2015-05-06 14:02:19

8. hi friends im the biginer of java
how to co

View Tutorial          By: Rock at 2013-05-14 09:27:19

9. ,./;'wat i searching for is that, the complete jav
View Tutorial          By: chor at 2010-03-28 23:09:37

10. Good One..
View Tutorial          By: Subhranil Mukherjee at 2015-03-11 07:22:18