Wednesday 21 August 2013

java looping example with increment operator

java looping example with increment operator

I have a little doubt here,i have a code as
int num=0;
for(i=0;i<5;i++){
num=num++
System.out.print(num);
}
why is it always giving me the output as 00000

No comments:

Post a Comment