質問編集履歴
4
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Hrsdyuhhbbbbbjnb
|
test
CHANGED
@@ -1,31 +1 @@
|
|
1
|
-
public class Rectangle {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
int x = 3;
|
6
|
-
|
7
|
-
int y = 4;
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
double area() {
|
12
|
-
|
13
|
-
double area = this.x * this.y;
|
14
|
-
|
15
|
-
return area;
|
16
|
-
|
17
|
-
}
|
18
|
-
|
19
|
-
|
1
|
+
Jaclyn vcggbbvcvvhbbvvvbjbvgyyybvvg
|
20
|
-
|
21
|
-
System.out.println(area());
|
22
|
-
|
23
|
-
}
|
24
|
-
|
25
|
-
}
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
計算の表示の仕方がわかりません。
|
30
|
-
|
31
|
-
教えてください。お願いします!
|
3
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,11 @@
|
|
16
16
|
|
17
17
|
}
|
18
18
|
|
19
|
+
public static void main(String[] args){
|
19
20
|
|
21
|
+
System.out.println(area());
|
22
|
+
|
23
|
+
}
|
20
24
|
|
21
25
|
}
|
22
26
|
|
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
長方形を表すクラスRactangleを定義し、Ractangleはフィールドとして、縦と横の長さ、メソッドとして面積を返すdouble area()をもつ。
|
2
|
-
|
3
1
|
public class Rectangle {
|
4
2
|
|
5
3
|
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,6 +24,6 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
|
27
|
+
計算の表示の仕方がわかりません。
|
28
28
|
|
29
29
|
教えてください。お願いします!
|