Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

truth tables


how do i construct truth tables in which i use the letters p and q for a AND or (&&), OR (||), AND (&),OR(|), XOR (^), and NOT (!)?
the statements when ran should return every possibilty for p and q. for instance- p-false q-false and p&&q-false. it should use the code System.out.printf
thanks for the help. Zach
abuzubair1999@yahoo.com