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. i want to SCJP exam ,tell how to apply for this ex
View Tutorial          By: jasmina at 2013-04-22 11:05:53

2. i want simple program of function used in recursio
View Tutorial          By: manish at 2009-05-19 01:03:19

3. I have copied c:\php\bin\msvcr80.dll to C:\Program
View Tutorial          By: agt at 2009-10-11 09:24:06

4. plz send me 1 ex that will explain how to use conn
View Tutorial          By: abhijit marne at 2011-12-09 06:32:07

5. It takes me time to understand the process of the
View Tutorial          By: Abdullah Ibrahim at 2012-04-11 00:38:23

6. Yeah, great article
View Tutorial          By: smeagol_s at 2009-03-29 02:45:01

7. Hi can anyone help me out, i need a full jsp code
View Tutorial          By: thangaraj at 2007-03-20 12:40:05

8. hay is there any way to perform operation or calcu
View Tutorial          By: neha at 2009-11-20 08:29:45

9. @Palla Subramanyam : Your logic is correct, but SO
View Tutorial          By: Roopesh H at 2012-07-27 04:47:48

10. plz can u give me code for database connectivity f
View Tutorial          By: nilam at 2012-03-15 12:54:07