From 13e1a61ad93d8ea90b24944342968f1f4799c318 Mon Sep 17 00:00:00 2001 From: Oleksii Aleshchenko Date: Thu, 2 Mar 2023 16:07:34 +0200 Subject: [PATCH] update Main with example for difference & and && --- src/Main.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/Main.java b/src/Main.java index ef51d6b..01cc396 100644 --- a/src/Main.java +++ b/src/Main.java @@ -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() {