Delete src directory
This commit is contained in:
		
							parent
							
								
									40b2c64883
								
							
						
					
					
						commit
						bb5b258ad3
					
				@ -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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -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);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -1,14 +0,0 @@
 | 
			
		||||
package encapsulationInheritancePolymorphism;
 | 
			
		||||
 | 
			
		||||
public class Main {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        Student student = new Student();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        //...
 | 
			
		||||
 | 
			
		||||
        student.setFaculty("FPM", "MO-22");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -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);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user