This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes if ((x == 1) or ( x==2)) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "if ((x == 1) or ( x==2))" Watch "if ((x == 1) or ( x==2))" New topic
Author

if ((x == 1) or ( x==2))

Mannie J Chaihan
Greenhorn

Joined: May 10, 2005
Posts: 6
Can I not use "and" and "or" in my if statements?
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
sure you can:


java amateur
Mannie J Chaihan
Greenhorn

Joined: May 10, 2005
Posts: 6
Of course.. Silly me. Thanks :roll:
 
jQuery in Action, 2nd edition
 
subject: if ((x == 1) or ( x==2))
 
Similar Threads
WA #1.....word association
x
Trying out smilies
how to config Tomcat on windows NT
JDeveloper exam..