class operatorLogika
{
public static void main(String[] args)
{
System.out.println("====Operasi AND====");
System.out.println("true && true = " + (true && true));
System.out.println("true && false = " + (true && false));
System.out.println("false && true = " + (false && true));
System.out.println("false && false = " + (false && false));
System.out.println("====Operasi OR====");
System.out.println("true || true = " + (true || true));
System.out.println("true || false = " + (true || false));
System.out.println("false || true = " + (false || true));
System.out.println("false || false = " + (false || false));
System.out.println("\n====Operasi NOT====");
System.out.println("!true = " + (!true));
System.out.println("!false = " + (!false));
System.out.println("\n====Operasi XOR====");
System.out.println("true ^ true = " + (true ^ true));
System.out.println("true ^ false = " + (true ^ false));
System.out.println("false ^ true = " + (false ^ true));
System.out.println("false ^ false = " + (false ^ false));
}
}
Jumat, 15 November 2013
Langganan:
Posting Komentar (Atom)
1 komentar:
a0s30d7a04 z6k42l4a05 j3h24q4r00 c6p63t3x40 h3t50e0x32 s8m01j7z32
Posting Komentar
Please Leave Your Comment :)