Name: Anonymous 2011-06-21 6:24
What does the following java code output?
int value = 0;
int count = 1;
value = count++;
System.out.println("value: "+ value + " + count: " + count );
I think it's;
value: 2 count: 1
Is this right? If it's not can someone please explain the answer to me. Thank you.
int value = 0;
int count = 1;
value = count++;
System.out.println("value: "+ value + " + count: " + count );
I think it's;
value: 2 count: 1
Is this right? If it's not can someone please explain the answer to me. Thank you.