aspose file tools
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 The Software Craftsman this week in the Agile 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:
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: if ((x == 1) or ( x==2))