Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Beginning Java and the fly likes not equal too & or operator???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "not equal too & or operator????" Watch "not equal too & or operator????" New topic

not equal too & or operator????

joe kane

Joined: Jan 26, 2004
Posts: 29
A quick one, what the symbol for not equal too e.g.
choose is a input dialog.
also is "or" the correct command I heard it was || or && not to sure..
Thanks joePC
Kim Kantola
Ranch Hand

Joined: May 17, 2001
Posts: 275
Kim Kantola
Ranch Hand

Joined: May 17, 2001
Posts: 275
use || for or
use && for and
Vicken Karaoghlanian
Ranch Hand

Joined: Jul 21, 2003
Posts: 522
Joe, i am not trying to be rude here, but you must first know at least the basics of JPL before you start coding. Try SUN's tutorial here it is pretty simple and easy.
And for the answer to your question:

Good Luck.

- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. - What truth? - That there is no spoon!!!
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
joe PC,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Wayne L Johnson
Ranch Hand

Joined: Sep 03, 2003
Posts: 399
I think this will give better results:

If you use ORs, the expression will always evaluate to true. Alternately you could use:

The two are logically equivalent.
[ January 26, 2004: Message edited by: Wayne L Johnson ]
joe kane

Joined: Jan 26, 2004
Posts: 29
Thanks for the help everyone, got it working perfectly, great forum & sorry about the name thing...
Wayne L Johnson --> That worked great..
thanks joe Kane
Have you tried LearnNowOnline?
subject: not equal too & or operator????