Comment on Tutorial - Increment and Decrement Operator By aathishankaran



Comment Added by : sajid

Comment Added at : 2011-09-06 20:51:54

Comment on Tutorial : Increment and Decrement Operator By aathishankaran
this is because dear u r using here postfix increment n++ this postfix assigned value 0 to n always before the increment in value and result would b 0 0 0 0 0 throughout the loop if u want that ur output will 1 2 3 4 5 then use prefix ++n here.

View Tutorial



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. excellent
View Tutorial          By: shamim at 2011-07-08 02:39:31

2. Plz can someone help me, I copied the code above a
View Tutorial          By: Dse90 at 2010-02-10 04:28:34

3. Hi Rajesh, you have found the right site. look at
View Tutorial          By: mohan at 2008-07-27 08:55:17

4. I think the programmer overlooked that "this
View Tutorial          By: Joe Schmoe at 2010-10-16 00:01:27

5. what is - MSComm1. You haven declared it as a vari
View Tutorial          By: Craig at 2011-05-01 16:37:13

6. Iwant javascript or Android.Thankyou
View Tutorial          By: bahman at 2013-01-01 01:27:20

7. Hi Friends.... Can you please send the working ver
View Tutorial          By: shafi at 2010-02-18 08:28:49

8. Hi,

This is really urgent... my cod

View Tutorial          By: Benetha at 2012-04-09 05:57:45

9. what's the purpose of indexOf('t',10)
View Tutorial          By: pevi at 2011-02-22 04:23:20

10. any help please I'm getting this exception

View Tutorial          By: Bull at 2012-01-02 17:22:18