質問編集履歴
1
エラーの追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import宣言
|
1
|
+
import宣言について
|
test
CHANGED
@@ -47,3 +47,33 @@
|
|
47
47
|
}
|
48
48
|
|
49
49
|
```
|
50
|
+
|
51
|
+
```error
|
52
|
+
|
53
|
+
Main.java:2: error: package calcapp.logics does not exist
|
54
|
+
|
55
|
+
import calcapp.logics.CalcLogic;
|
56
|
+
|
57
|
+
^
|
58
|
+
|
59
|
+
Main.java:6: error: cannot find symbol
|
60
|
+
|
61
|
+
int total = CalcLogic.tasu(a,b);//importでパッケージとクラスを指定してるからクラスとメゾットだけかけばよい
|
62
|
+
|
63
|
+
^
|
64
|
+
|
65
|
+
symbol: variable CalcLogic
|
66
|
+
|
67
|
+
location: class Main
|
68
|
+
|
69
|
+
Main.java:7: error: package calcapp.logics does not exist
|
70
|
+
|
71
|
+
int delta = calcapp.logics.CalcLogic.hiku(a,b);//全部書いてもいい
|
72
|
+
|
73
|
+
^
|
74
|
+
|
75
|
+
3 errors
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
```
|