d2jsp
Gaming and Trading Community
Gaming and Trading Community
Hourly Raffle
Ladder Slasher
Trade Finder
Photo Gallery
Forum Gold FAQ
Instant Messenger
Help and Rules
Live Streams
Account RecoveryResend Validation Email
Hello, GuestLog InRegister
d2jsp Forums > Programmer's Haven > Java, Visual Basic, VBScript > Java Boolean Table

Add ReplyNew TopicNew Poll
Page 1 of 1
The_Darkness_II
#1 Jun 17 2012 11:16am
Group: Members
Posts: 13,595
Joined: Sep 23 2008
Gold: 4,924.00


I want to complete this boolean table.
Is it correct that this means: x has to be true AND y has to be false to be false, else it is true? so ...
true
false
true
true

is this correct? thx in advance :)
carteblanche
#2 Jun 17 2012 11:39am
Group: Members
Posts: 18,882
Joined: Jul 23 2006
Gold: 2,461.00
This is code. Run it and see.
BreakPoint
#3 Jun 17 2012 12:21pm
Group: Members
Posts: 13,555
Joined: Dec 4 2009
Gold: 0.00
Two things

Quote (carteblanche @ Jun 17 2012 10:39am)
This is code. Run it and see.


This

and

Haven't you taken a logic class in high school or college? You have your truth table answers backwards.
irimi
#4 Jun 17 2012 12:39pm
Group: Members
Posts: 3,597
Joined: Sep 15 2011
Gold: 1,771.00
Quote (BreakPoint @ Jun 17 2012 11:21am)
Haven't you taken a logic class in high school or college? You have your truth table answers backwards.


You must not be reading his image/code/table correctly. It's fine.
Diablows2
#5 Jun 17 2012 02:13pm
Group: Members
Posts: 3,004
Joined: Jun 15 2008
Gold: 9,145.31
answers are correct
AbDuCt
#6 Jun 17 2012 10:19pm
Group: Members
Posts: 8,550
Joined: Sep 29 2007
Gold: 719.06
Warn: 40%
http://pastebin.com/c0XaQejy

might be a okay read for you if you don't quite understand bitwise math. just skip down the section 3.0
BreakPoint
#7 Jun 18 2012 01:49am
Group: Members
Posts: 13,555
Joined: Dec 4 2009
Gold: 0.00
Quote (irimi @ Jun 17 2012 11:39am)
You must not be reading his image/code/table correctly.  It's fine.


Oh. In that case, he set up the function weirdly. At least compared to how I learned that kind of stuff. I assumed that if the conditional was true, it would return true.

Carry on.
The_Darkness_II
#8 Jun 18 2012 04:30am
Group: Members
Posts: 13,595
Joined: Sep 23 2008
Gold: 4,924.00
thx guys!
Go Back To Java, Visual Basic, VBScript Topic List
Page 1 of 1