From 88dc8c8022876c98d5c7dce4166ba93e4d539002 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 25 Apr 2024 20:58:12 +0400 Subject: [PATCH 1/2] =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 29 +++++++++++++++++++++ src/edu/java/development/Practicum.java | 34 +++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .gitignore create mode 100644 src/edu/java/development/Practicum.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f68d109 --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/src/edu/java/development/Practicum.java b/src/edu/java/development/Practicum.java new file mode 100644 index 0000000..c6cc455 --- /dev/null +++ b/src/edu/java/development/Practicum.java @@ -0,0 +1,34 @@ +package edu.java.development; + +public class Practicum { + public static void main(String[] args) { + System.out.println("Начало работы программы"); + sayHello(); + System.out.println("Конец программы"); + } + public static void sayHello(){ + printHeader(); + System.out.println("Привет"); + } + public static void printHeader(){ + System.out.println("Сейчвс будет приветствие..."); + } + + +} +/*public class Practicum { + public static void main(String[] args) { + System.out.println("Начало программы"); + sayHello(); // Вызывов метода sayHello + System.out.println("Конец программы"); + } + + public static void sayHello() { //объявление метода sayHello + printHeader(); // Вызывов метода printHeader + System.out.println("Привет!"); + } + + public static void printHeader() { + System.out.println("Сейчвс будет приветствие..."); + } +}*/ \ No newline at end of file From 2868caef12cded47e29497577776e471fed21454 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 25 Apr 2024 21:06:59 +0400 Subject: [PATCH 2/2] =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/edu/java/development/Practicum.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/edu/java/development/Practicum.java b/src/edu/java/development/Practicum.java index c6cc455..4cbfbf8 100644 --- a/src/edu/java/development/Practicum.java +++ b/src/edu/java/development/Practicum.java @@ -12,6 +12,7 @@ public static void sayHello(){ } public static void printHeader(){ System.out.println("Сейчвс будет приветствие..."); + System.out.println(); }