Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to do Between?(Im new :D)
icon7.gif  How to do Between? [message #814900] Wed, 07 March 2012 01:36 Go to next message
K11i3R Lim is currently offline K11i3R LimFriend
Messages: 1
Registered: March 2012
Junior Member
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: Wed, 07 March 2012 01:37]

Report message to a moderator

Re: How to do Between? [message #814976 is a reply to message #814900] Wed, 07 March 2012 04:18 Go to previous messageGo to next message
Michael Olan is currently offline Michael OlanFriend
Messages: 20
Registered: July 2009
Junior Member
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 07:31 Go to previous message
Harutyun Arzumanian is currently offline Harutyun ArzumanianFriend
Messages: 35
Registered: February 2012
Member
	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: Fri Apr 19 15:54:09 GMT 2024

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

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

Back to the top