ソースを参照

Made class and methods package private

Morten Nygaard Åsnes 9 年 前
コミット
9c69daacad
共有1 個のファイルを変更した6 個の追加7 個の削除を含む
  1. 6
    7
      exercises/matrix/src/main/java/Matrix.java

+ 6
- 7
exercises/matrix/src/main/java/Matrix.java ファイルの表示

1
-import java.util.regex.Pattern;
2
 
1
 
3
-public class Matrix {
2
+class Matrix {
4
 
3
 
5
-    public Matrix(String matrixAsString) {
4
+    Matrix(String matrixAsString) {
6
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
5
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
7
     }
6
     }
8
 
7
 
9
-    public int[] getRow(int rowNumber) {
8
+    int[] getRow(int rowNumber) {
10
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
9
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
11
     }
10
     }
12
 
11
 
13
-    public int[] getColumn(int columnNumber) {
12
+    int[] getColumn(int columnNumber) {
14
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
13
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
15
     }
14
     }
16
 
15
 
17
-    public int getRowsCount() {
16
+    int getRowsCount() {
18
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
17
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
19
     }
18
     }
20
 
19
 
21
-    public int getColumnsCount() {
20
+    int getColumnsCount() {
22
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
21
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
23
     }
22
     }
24
 }
23
 }