File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic syntax question