Results 1 to 10 of 10
Thread: Logical Operators
- 03-26-2012, 03:04 PM #1
Logical Operators
How would I write an expression that evaluates to true if x is non-negative and y is negative when they have already been declared and assigned values?
- 03-26-2012, 03:12 PM #2
Re: Logical Operators
What have you tried? Where are you stuck?
How do you test whether a value is negative or not?How to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
- 03-26-2012, 03:19 PM #3
Re: Logical Operators
- 03-26-2012, 03:23 PM #4
Re: Logical Operators
Hint: When is a number considered negative?
Operators (The Java™ Tutorials > Learning the Java Language > Language Basics)How to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
- 03-26-2012, 03:27 PM #5
Re: Logical Operators
- 03-26-2012, 03:30 PM #6
Re: Logical Operators
Seems reasonable to me. Now do you see any comparative operators that test whether a value is less than another value?
The tutorial I linked you to contains this page: http://docs.oracle.com/javase/tutori...bolts/op2.htmlHow to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
- 03-26-2012, 03:34 PM #7
Re: Logical Operators
- 03-26-2012, 03:36 PM #8
Re: Logical Operators
How to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
- 03-26-2012, 03:42 PM #9
Re: Logical Operators
- 03-26-2012, 03:56 PM #10
Re: Logical Operators
Awesome. Glad you got it sorted out.
How to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
Similar Threads
-
>>> and >> Logical operators
By Playagood in forum New To JavaReplies: 3Last Post: 02-19-2012, 04:07 AM -
string operators
By cagipple in forum New To JavaReplies: 5Last Post: 04-17-2011, 01:04 AM -
where exactly bit shift operators are useful?
By sandeepsai39 in forum New To JavaReplies: 6Last Post: 09-08-2010, 11:58 AM -
New to operators, need some help...
By Stryker4526 in forum New To JavaReplies: 4Last Post: 09-26-2009, 01:29 AM
Bookmarks