From b02130611961d2899c73fec83262368d69701780 Mon Sep 17 00:00:00 2001 From: Zabi1one Date: Mon, 8 Dec 2025 16:38:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BF=D1=80.=E2=84=962=20(=D1=84=D0=BE?= =?UTF-8?q?=D1=80=D0=BA=20=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D1=8F=20+=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5=D0=B3=D0=BE=20=D1=87=D0=B8?= =?UTF-8?q?=D1=81=D0=BB=D0=B0=20=D0=B2=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BC=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 5 ++++ .idea/compiler.xml | 13 ++++++++ .idea/encodings.xml | 7 +++++ .idea/jarRepositories.xml | 20 +++++++++++++ .idea/java-first-project.iml | 9 ++++++ .idea/misc.xml | 14 +++++++++ .idea/modules.xml | 8 +++++ .idea/vcs.xml | 6 ++++ .../src/main/java/org/example/Main.java | 30 +++++-------------- 9 files changed, 89 insertions(+), 23 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/java-first-project.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..8313af2 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..f307345 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/java-first-project.iml b/.idea/java-first-project.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/java-first-project.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..08229dd --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..0314a68 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/first-project/src/main/java/org/example/Main.java b/first-project/src/main/java/org/example/Main.java index b150994..7356373 100644 --- a/first-project/src/main/java/org/example/Main.java +++ b/first-project/src/main/java/org/example/Main.java @@ -4,30 +4,14 @@ public class Main { public static void main(String[] args) { int a = -1; int b = 2; - double d = 2.2; - float f = 2.2f; - String s = "just-string"; - boolean l = true; -// System.out.println(a + b); + int c = 11; + int d = -4; -// if (a > 0) { -// System.out.println(a); -// }else{ -// System.out.println("a<=0"); -// } -// int i = 0; -// while(i < 10){ -// System.out.println(i); -// i++; -// } - - Human human = new Human(30, 180); - Human human1 = new Human(29, 179); - Human baby1 = new Human(55); - - - System.out.println(baby1.olderThan18()); - System.out.println(human.getAge()); + int max = a; + if (b > max) max = b; + if (c > max) max = c; + if (d > max) max = d; + System.out.println(max); } } \ No newline at end of file