クエスチョン4~7完了しました。
This commit is contained in:
@@ -6,9 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
public class PTra01_04 {
|
public class PTra01_04 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
int num = 10;
|
||||||
// TODO 数値型の変数 number を 10 で初期化してください。
|
// TODO 数値型の変数 number を 10 で初期化してください。
|
||||||
|
System.out.println(num);
|
||||||
// TODO number の値を出力してください
|
// TODO number の値を出力してください
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
public class PTra01_05 {
|
public class PTra01_05 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
char ch = 'A';
|
||||||
// TODO char型の変数 ch を A で初期化してください。
|
// TODO char型の変数 ch を A で初期化してください。
|
||||||
|
System.out.println(ch);
|
||||||
// TODO ch の値を出力してください
|
// TODO ch の値を出力してください
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
public class PTra01_06 {
|
public class PTra01_06 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
boolean bo = true;
|
||||||
// TODO boolean型の変数 bo を true で初期化してください。
|
// TODO boolean型の変数 bo を true で初期化してください。
|
||||||
|
System.out.println(bo);
|
||||||
// TODO bo の値を出力してください
|
// TODO bo の値を出力してください
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
public class PTra01_07 {
|
public class PTra01_07 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
long lo = 1000000000000L;
|
||||||
// TODO long型の変数 lo を 1000000000000 で初期化してください。
|
// TODO long型の変数 lo を 1000000000000 で初期化してください。
|
||||||
|
System.out.println(lo);
|
||||||
// TODO lo の値を出力してください
|
// TODO lo の値を出力してください
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user