Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
public class ShortCirc {
|
||||
public static void main(String[] args){
|
||||
System.out.println("F and F = " + (a(false) && b(false)) + "\n");
|
||||
System.out.println("F or F = " + (a(false) || b(false)) + "\n");
|
||||
|
||||
System.out.println("F and T = " + (a(false) && b(true)) + "\n");
|
||||
System.out.println("F or T = " + (a(false) || b(true)) + "\n");
|
||||
|
||||
System.out.println("T and F = " + (a(true) && b(false)) + "\n");
|
||||
System.out.println("T or F = " + (a(true) || b(false)) + "\n");
|
||||
|
||||
System.out.println("T and T = " + (a(true) && b(true)) + "\n");
|
||||
System.out.println("T or T = " + (a(true) || b(true)) + "\n");
|
||||
}
|
||||
|
||||
public static boolean a(boolean a){
|
||||
System.out.println("a");
|
||||
return a;
|
||||
}
|
||||
|
||||
public static boolean b(boolean b){
|
||||
System.out.println("b");
|
||||
return b;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue