java(初心者編)
問題文
ふりがな非表示
ふりがな表示
(dir)
dir
(cd ..¥..)
cd ..\..
(javac sample01.java)
javac Sample01.java
(java sample01)
java Sample01
(class sample01)
class Sample01
({public static void main)
{public static void main
({int num1, num2;)
{int num1, num2;
(num1 = 5;)
num1 = 5;
(system.out.println)
System.out.println
((”hensuunum1ha” + num1 + ”desu。”);)
("変数num1は" + num1 + "です。");
(num2 = num1;)
num2 = num1;
(system.out.println)
System.out.println
((”hensuunum2ha” + num2 + ”desu”);}})
("変数num2は" + num2 + "です");}}