Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132939 views
License: OTHER
1
public class Bool {
2
public static void main(String[] v) {
3
boolean a = true;
4
boolean b = false;
5
boolean c = true;
6
int d = 0;
7
boolean e = false;
8
9
if (a && b && c) {
10
System.out.println("Alpha");
11
}
12
13
if (d) {
14
System.out.println("Beta");
15
}
16
17
if (a||b && b||e) {
18
System.out.println("Gamma");
19
}
20
}
21
}
22
23