Results 1 to 2 of 2
- 05-06-2010, 12:55 AM #1
Member
- Join Date
- Nov 2009
- Location
- California
- Posts
- 55
- Rep Power
- 0
to which if statement does this else belong to??
which if statement does the else statement belong to?Java Code:public int scoreUp(String[] key, String[] answers) { int score = 0; for (int i=0; i < key.length ; i++) { if (answers[i] != "?"){ if (key[i].equals(answers[i])) score +=4; else score--; } } return score; }
the first or second?
and if possible can you explain why
- 05-06-2010, 01:07 AM #2
Senior Member
- Join Date
- Mar 2010
- Posts
- 953
- Rep Power
- 4
Similar Threads
-
If Statement in SQL
By Steffi1013 in forum JDBCReplies: 6Last Post: 04-10-2010, 03:19 PM -
need help in sql statement
By chyeeqi in forum JDBCReplies: 6Last Post: 03-28-2010, 07:49 PM -
for statement help
By helpisontheway in forum New To JavaReplies: 5Last Post: 11-14-2009, 04:14 PM -
The if Statement, need some help!
By Keno777 in forum New To JavaReplies: 6Last Post: 10-24-2009, 12:53 AM -
Statement or Prepared Statement ?
By paty in forum JDBCReplies: 3Last Post: 08-01-2007, 04:45 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks