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. Using HTTP Redirect as per your suggesion, worked
View Tutorial          By: Balram at 2008-03-21 01:27:02

2. Hi.. Everyone... i would like to send and received
View Tutorial          By: Michael at 2011-01-29 23:43:23

3. please help me to do find a push and pop operation
View Tutorial          By: sweet mae at 2011-01-14 00:01:33

4. Hi, If any body was able to send the message suces
View Tutorial          By: Pradeep Singh Chouhan at 2011-03-02 23:03:05

5. Easy to understand
View Tutorial          By: suji at 2012-02-21 08:28:05

6. it's really amazing & very easy to understand
View Tutorial          By: Vaibhav Bhalerao at 2010-08-17 10:54:52

7. thanx to schildt
View Tutorial          By: singh at 2012-10-26 11:57:11

8. Now what the hell does all this mean???
To

View Tutorial          By: Søren at 2011-09-22 03:13:53

9. The arraycopy in a System is static native method
View Tutorial          By: Ashwinkumar.vj at 2011-07-19 09:25:02

10. good explanation
View Tutorial          By: Naresh Kumar at 2010-10-25 00:28:18