From bb5b258ad3a1e93e97ee2fad1f203115615ca1bb Mon Sep 17 00:00:00 2001 From: dima0808 <52035263+dima0808@users.noreply.github.com> Date: Wed, 22 Feb 2023 20:29:35 +0100 Subject: [PATCH] Delete src directory --- src/Main.java | 15 -------------- .../Encapsulation.java | 20 ------------------- .../EncapsulationInheritancePolymorphism.java | 10 ---------- .../Main.java | 14 ------------- .../Student.java | 18 ----------------- src/test/A.java | 13 ------------ src/test/Main.java | 15 -------------- 7 files changed, 105 deletions(-) delete mode 100644 src/Main.java delete mode 100644 src/encapsulationInheritancePolymorphism/Encapsulation.java delete mode 100644 src/encapsulationInheritancePolymorphism/EncapsulationInheritancePolymorphism.java delete mode 100644 src/encapsulationInheritancePolymorphism/Main.java delete mode 100644 src/encapsulationInheritancePolymorphism/Student.java delete mode 100644 src/test/A.java delete mode 100644 src/test/Main.java diff --git a/src/Main.java b/src/Main.java deleted file mode 100644 index 6c19da8..0000000 --- a/src/Main.java +++ /dev/null @@ -1,15 +0,0 @@ -public class Main { - public static void main(String[] args) { - System.out.println(args[1]); - System.out.println("Hello world!"); -// System.out.println(1); - } - - void myFunction() { - - } - - int myFunction2() { - return 1; - } -} diff --git a/src/encapsulationInheritancePolymorphism/Encapsulation.java b/src/encapsulationInheritancePolymorphism/Encapsulation.java deleted file mode 100644 index aa53da3..0000000 --- a/src/encapsulationInheritancePolymorphism/Encapsulation.java +++ /dev/null @@ -1,20 +0,0 @@ -package encapsulationInheritancePolymorphism; - -public class Encapsulation { - /*private*/ int field; - private int field2; -// int a = 1; - - public void myMethodForTheField () { - System.out.println(field); - } - - public void myMethodForTheField2 () { - System.out.println(field); - } - - public void myMethodForTheFieldAndTheField2 () { - System.out.println(field); - } -} - diff --git a/src/encapsulationInheritancePolymorphism/EncapsulationInheritancePolymorphism.java b/src/encapsulationInheritancePolymorphism/EncapsulationInheritancePolymorphism.java deleted file mode 100644 index b7343df..0000000 --- a/src/encapsulationInheritancePolymorphism/EncapsulationInheritancePolymorphism.java +++ /dev/null @@ -1,10 +0,0 @@ -package encapsulationInheritancePolymorphism; - -public class EncapsulationInheritancePolymorphism { - - public static void main(String[] args) { - int a = 1; -// var b = 2; -// System.out.println(b); - } -} diff --git a/src/encapsulationInheritancePolymorphism/Main.java b/src/encapsulationInheritancePolymorphism/Main.java deleted file mode 100644 index 47dc9d3..0000000 --- a/src/encapsulationInheritancePolymorphism/Main.java +++ /dev/null @@ -1,14 +0,0 @@ -package encapsulationInheritancePolymorphism; - -public class Main { - public static void main(String[] args) { - Student student = new Student(); - - - - - //... - - student.setFaculty("FPM", "MO-22"); - } -} diff --git a/src/encapsulationInheritancePolymorphism/Student.java b/src/encapsulationInheritancePolymorphism/Student.java deleted file mode 100644 index 2ad836d..0000000 --- a/src/encapsulationInheritancePolymorphism/Student.java +++ /dev/null @@ -1,18 +0,0 @@ -package encapsulationInheritancePolymorphism; - -public class Student { - private String name; - private String surname; - private String group; - private String faculty; - - - public String getName() { - return name; - } - - public void setFaculty(String faculty, String group) { - this.faculty = faculty; - this.group = group; - } -} diff --git a/src/test/A.java b/src/test/A.java deleted file mode 100644 index 8553a5e..0000000 --- a/src/test/A.java +++ /dev/null @@ -1,13 +0,0 @@ -package test; - -public class A { - /*private*/ int f/* = 3*/; - - public int getF() { - return f; - } - - public void setF(int f) { - this.f = f; - } -} diff --git a/src/test/Main.java b/src/test/Main.java deleted file mode 100644 index bf9f4b3..0000000 --- a/src/test/Main.java +++ /dev/null @@ -1,15 +0,0 @@ -package test; - -public class Main { - public static void main(String[] args) { - A a = new A(); - System.out.println(a.getF()); - a.setF(1); - System.out.println(a.getF()); - - System.out.println(a.f); - - int[] array = {1, 2, 1}; - System.out.println(array.length); - } -}