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. hii
i have

two varirables
View Tutorial          By: niranjan at 2012-07-31 06:47:36

2. this is really cool......
View Tutorial          By: solex at 2009-05-16 04:02:35

3. great material for language bugs....
View Tutorial          By: manoj kapri at 2009-11-30 00:30:13

4. Can Some body help me??
i want To show date

View Tutorial          By: saif at 2013-04-29 09:22:31

5. hello friends .. am looking for the java code that
View Tutorial          By: ahmed at 2008-09-18 21:48:21

6. hi every body i want full java code to send messag
View Tutorial          By: Ashray P Shetty at 2010-11-09 04:33:45

7. Anyone can send me the java code for send and rece
View Tutorial          By: Alvin at 2008-03-21 01:12:50

8. I am receiving an error as
Error java.lan

View Tutorial          By: pablo at 2014-08-03 16:10:55

9. plz give me for css coding
View Tutorial          By: anil mani at 2008-04-19 01:20:06

10. it is Marvelous example.
View Tutorial          By: princevijayakumar at 2010-08-04 07:56:33