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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. Thank ... for idea But
i m confuse how run
View Tutorial By: Tanaji at 2010-06-01 23:13:19
2. just remember to add
<uses-permission an
View Tutorial By: Mouad at 2013-07-22 10:47:27
3. very good explanation,very good examples..
View Tutorial By: sra1 at 2011-11-14 08:30:47
4. Sir , I am doing MSc(swe) . I want to know more ab
View Tutorial By: guru prakash at 2009-10-15 09:10:05
5. how to solve this while i am running the code it
View Tutorial By: nikhilmuddasani at 2009-07-23 04:32:31
6. A wonderful tutorial to learn XML Processing with
View Tutorial By: Madhan at 2011-09-13 19:37:08
7. I need more example........
View Tutorial By: niyaz d at 2011-02-20 23:44:56
8. Nice one , Compailed no Errors ... but when execut
View Tutorial By: Diamant at 2012-12-04 00:17:11
9. it is super
View Tutorial By: vinod at 2011-09-03 04:06:02
10. yes,it is a very nice example for abstract classe
View Tutorial By: saranya at 2010-07-16 05:56:53