Results 1 to 2 of 2
Thread: Help with instruction
- 01-27-2010, 09:42 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 7
- Rep Power
- 0
- 01-27-2010, 10:09 PM #2
Are you asking what
is?Java Code:int sum = player.equals("O") ? -2 : 2;
If so, It's basically saying that if player is equal to "O", then set sum equal to negative two. If player does not equal "0", then set sum to positive two. I hope that helps."Experience is what you get when you don't get what you want" (Dan Stanford)
"Rise and rise again until lambs become lions" (Robin Hood)
Similar Threads
-
Is there anyone can give a instruction about Myoodb
By ibmzz in forum JDBCReplies: 0Last Post: 01-19-2008, 09:04 AM -
First Typed via video instruction
By ZAXTHEGREAT in forum New To JavaReplies: 15Last Post: 07-23-2007, 04:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks