Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to do Between?(Im new :D)
icon7.gif  How to do Between? [message #814900] Tue, 06 March 2012 20:36 Go to next message
Eclipse UserFriend
Hi guys,
i would like to know how to do a IF Statement like "When the number are between 3 and 6 " the system will print "Lucky day"... i tried everything and i need help !!!! Sad
i know the basic thing but how do we put the "Between" statement in eclipse :<

Btw im sorry if i put it in the wrong section cause im new xD so.... i didnt know where to put my question! Smile

[Updated on: Tue, 06 March 2012 20:37] by Moderator

Re: How to do Between? [message #814976 is a reply to message #814900] Tue, 06 March 2012 23:18 Go to previous messageGo to next message
Eclipse UserFriend
Check your text book for examples. Hint: Think about how to express a
logical AND in Java.

On 3/6/2012 8:36 PM, K11i3R Lim wrote:
> Hi guys,
> i would like to know how to do a IF Statement like "When the number are
> between 3 and 6 " the system will print "Lucky day"... i tried
> everything and i need help !!!! :( i know the basic thing but how do we
> put the "Between" statement in eclipse :<
Re: How to do Between? [message #815069 is a reply to message #814976] Wed, 07 March 2012 02:31 Go to previous message
Eclipse UserFriend
	public void printer(int integer, String message) {
		if (integer > 3 && integer < 6) {
			System.out.println(message);
		}
	}
Previous Topic:problems with eclipse
Next Topic:Can I hide a row in my JTable ?
Goto Forum:
  


Current Time: Thu May 22 23:09:11 EDT 2025

Powered by FUDForum. Page generated in 0.03376 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top