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



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. plse can u send me study material or sample questi
View Tutorial          By: sneha at 2015-03-12 09:40:49

2. Thanks for the code it save's me a lot of work, ho
View Tutorial          By: Wishkah at 2009-09-04 00:29:16

3. Very nice to understand the concept.It also help t
View Tutorial          By: Hrusikesh jena at 2011-05-26 00:23:28

4. Thanks for your code. Nice working but I have one
View Tutorial          By: Ravinder Kumar at 2012-01-02 18:01:21

5. I got Error...Why it is happen..??


View Tutorial          By: Dineth at 2011-07-15 16:54:31

6. I was able to modify this to work perfectly.

View Tutorial          By: _Jon at 2012-04-01 23:04:49

7. how to show text in tab menu & when i selecte
View Tutorial          By: hina siddiqui at 2011-08-09 07:38:14

8. can you send me comm.jar required for this project
View Tutorial          By: rahul at 2012-10-20 12:21:42

9. Thanks a lot for the code...
thats working

View Tutorial          By: Rahul at 2008-06-28 14:16:10

10. Where should the file be placed? How do I know wh
View Tutorial          By: Anon at 2009-07-23 14:08:17