Преглед на файлове

Changed methods from public to package-private

Jack Mustacato преди 9 години
родител
ревизия
4bc51dfee3
променени са 2 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 3
    3
      exercises/triangle/.meta/src/reference/java/Triangle.java
  2. 3
    3
      exercises/triangle/src/main/java/Triangle.java

+ 3
- 3
exercises/triangle/.meta/src/reference/java/Triangle.java Целия файл

20
         this.uniqueSides = getNumberOfUniqueSides();
20
         this.uniqueSides = getNumberOfUniqueSides();
21
     }
21
     }
22
 
22
 
23
-    public boolean isEquilateral() {
23
+    boolean isEquilateral() {
24
         return uniqueSides == 1;
24
         return uniqueSides == 1;
25
     }
25
     }
26
 
26
 
27
-    public boolean isIsosceles() {
27
+    boolean isIsosceles() {
28
         return uniqueSides == 2;
28
         return uniqueSides == 2;
29
     }
29
     }
30
 
30
 
31
-    public boolean isScalene() {
31
+    boolean isScalene() {
32
         return uniqueSides == 3;
32
         return uniqueSides == 3;
33
     }
33
     }
34
 
34
 

+ 3
- 3
exercises/triangle/src/main/java/Triangle.java Целия файл

4
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
4
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
5
     }
5
     }
6
 
6
 
7
-    public boolean isEquilateral() {
7
+    boolean isEquilateral() {
8
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
8
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
9
     }
9
     }
10
 
10
 
11
-    public boolean isIsosceles() {
11
+    boolean isIsosceles() {
12
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
12
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
13
     }
13
     }
14
 
14
 
15
-    public boolean isScalene() {
15
+    boolean isScalene() {
16
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
16
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
17
     }
17
     }
18
 
18