This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Basic syntax question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Basic syntax question" Watch "Basic syntax question" New topic
Author

Basic syntax question

Matt Hall
Greenhorn

Joined: Feb 28, 2006
Posts: 24
I want to specify a value in an if statement as being between two numbers, am unsure how to reperesent this.

the if statement should be true if x is between 14 and 26, how should this be written.

e.g.

if (x //x should be between 14 and 26
vignesh hariharan
Ranch Hand

Joined: Jun 23, 2005
Posts: 77
Originally posted by Matt Hall:

the if statement should be true if x is between 14 and 26, how should this be written.




Regards,
vignesh
Matt Hall
Greenhorn

Joined: Feb 28, 2006
Posts: 24
nice one mate, cheers
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Basic syntax question
 
It's not a secret anymore!