update Main with example for difference & and &&

This commit is contained in:
Oleksii Aleshchenko 2023-03-02 16:07:34 +02:00
parent f692ae7588
commit 13e1a61ad9
1 changed files with 27 additions and 0 deletions

View File

@ -3,6 +3,33 @@ public class Main {
System.out.println(args[2]);
System.out.println("Hello world!");
// System.out.println(1);
int a = 1;
int b = 2;
int c = 1;
int d = 1;
System.out.println(2&1);
System.out.println(2|1);
int aa = 2;
/*if (aa) {
}*/
// System.out.println("a"&"b");
System.out.println('a'&'b');
if ((a > b) & MyBooleanMethod()) {
System.out.println("?????????????????????????");
}
}
static boolean MyBooleanMethod() {
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
return true;
}
void myFunction() {