
-----------------------------------
ImDennis
Fri Nov 04, 2011 3:16 pm

stuck on a java question, help please
-----------------------------------
so im doing code labs and i seem to of stumbled apawn a question that i cant seem to figure out, the question is 
Write a statement that compares the values of  score1 and  score2 and takes the following actions. When  score1 exceeds  score2 , the message "player1 wins" is printed to standard out. When  score2 exceeds  score1 , the message "player2 wins" is printed to standard out. In each case, the variables  player1Wins, ,  player1Losses ,  player2Wins, and  player2Losses, , are incremented when appropriate. 

Finally, in the event of a tie, the message "tie" is printed and the variable  tieCount is incremented.

and my code that i got is  if (score1>score2)
{
System.out.println("player1 wins");
}
else if (score1=1995 && modelYear =2004 && modelYear 2004)
System.out.println("RECALL");("RECALL");

-----------------------------------
Velocity
Fri Feb 10, 2012 11:05 am

RE:stuck on a java question, help please
-----------------------------------
thats sooo easy, 
{
if p1 >= p2 
System.println ("p1 wins')
elsif p1 = p2 
System.println ("p1 wins')
elsif p1 