Question06-08
This commit is contained in:
@@ -8,8 +8,9 @@ public class PTra01_06 {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
// TODO boolean型の変数 bo を true で初期化してください。
|
// TODO boolean型の変数 bo を true で初期化してください。
|
||||||
|
String bo = "true";
|
||||||
|
|
||||||
// TODO bo の値を出力してください
|
// TODO bo の値を出力してください
|
||||||
|
System.out.println(bo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ public class PTra01_07 {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
// TODO long型の変数 lo を 1000000000000 で初期化してください。
|
// TODO long型の変数 lo を 1000000000000 で初期化してください。
|
||||||
|
long LargeNumber = 1000000000000L;
|
||||||
|
|
||||||
// TODO lo の値を出力してください
|
// TODO lo の値を出力してください
|
||||||
|
System.out.println(LargeNumber);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ public class PTra01_08 {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
// TODO float型の変数 fl を 3.14 で初期化してください。
|
// TODO float型の変数 fl を 3.14 で初期化してください。
|
||||||
|
float Number = 3.14f;
|
||||||
|
|
||||||
// TODO fl の値を出力してください
|
// TODO fl の値を出力してください
|
||||||
|
System.out.println(Number);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user