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..4cbfbf8 --- /dev/null +++ b/src/edu/java/development/Practicum.java @@ -0,0 +1,35 @@ +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("Сейчвс будет приветствие..."); + 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