Two Laptop Bag*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: if ((x == 1) or ( x==2))