d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Java Boolean Table
Add Reply New Topic New Poll
Member
Posts: 13,681
Joined: Sep 23 2008
Gold: 9,150.00
Jun 17 2012 11:16am


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 :)
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 17 2012 11:39am
This is code. Run it and see.
Member
Posts: 13,630
Joined: Dec 4 2009
Gold: 0.00
Jun 17 2012 12:21pm
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.
Member
Posts: 4,605
Joined: Sep 15 2011
Gold: 9,464.00
Jun 17 2012 12:39pm
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.
Member
Posts: 3,004
Joined: Jun 15 2008
Gold: 9,145.31
Jun 17 2012 02:13pm
answers are correct
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 17 2012 10:19pm
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
Member
Posts: 13,630
Joined: Dec 4 2009
Gold: 0.00
Jun 18 2012 01:49am
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.
Member
Posts: 13,681
Joined: Sep 23 2008
Gold: 9,150.00
Jun 18 2012 04:30am
thx guys!
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll