Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
35 changes: 35 additions & 0 deletions src/edu/java/development/Practicum.java
Original file line number Diff line number Diff line change
@@ -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("Сейчвс будет приветствие...");
}
}*/