[Bluej-discuss] For Loop doubt:

Namit TClaw namit.tclaw at gmail.com
Mon Mar 6 13:52:43 GMT 2006


I am a student of BlueJ and had a doubt.

 

Is there any difference between :

for(int j=1;j<=5;j++)

System.out.println(j);

 

and

 

for(int j=1;j<=5;++j)

System.out.println(j);

 

The output is the same, but I wanted to know if any internal operation is
different.

 

 

Regards,

Namit.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20060306/bf79f6c9/attachment.html


More information about the bluej-discuss mailing list