Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java Programming Question

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.

Name: Anonymous 2011-06-21 6:29

Value 1 count 2

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List