Comment on Tutorial - for loop in java By Abinaya



Comment Added by : jatin kapoor

Comment Added at : 2011-01-22 03:43:10

Comment on Tutorial : for loop in java By Abinaya
// Using the comma.
class Comma {
public static void main(String args[]) {
int a, b;
for(a=1, b=4; a<b; a++, bâ) {
System.out.println("a = " + a);
System.out.println("b = " + b);
}
}
}
its output is wrong
please check out


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 think this ist perfectly fine :) if you don't kn
View Tutorial          By: julian at 2011-03-07 05:54:08

2. Nice Intro .......
View Tutorial          By: MohanRaja at 2012-06-28 11:02:40

3. I am wanting to use a Honeywell 4600g handheld sca
View Tutorial          By: bugdrvr1970 at 2012-01-25 17:27:43

4. Hello all,
Please help me out. I want to cr

View Tutorial          By: Richa Bhatia at 2009-12-07 22:55:54

5. great resource
View Tutorial          By: Anonymous at 2011-04-14 03:14:43

6. can u please send me the code for sending sms from
View Tutorial          By: Vicky at 2008-03-20 02:34:27

7. The only thing that really was the solution to my
View Tutorial          By: nick marinho at 2010-07-24 17:45:59

8. finally an understandable example
View Tutorial          By: sdf at 2012-11-26 21:44:34

9. Showing code with quote tags is pretty rubbish. :/
View Tutorial          By: Daniel Jonsson at 2011-09-01 14:01:04

10. Can you tught me matrix function and friend functi
View Tutorial          By: Shiv pratap singh at 2013-01-12 06:46:46