wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
value of x?
how to compare the values in arrays
werid output for For loop
Problem when installing RAR in Resoruce Adapters in WAS 5.1
SQL query not giving any result