Java02(初心者 入力編)
問題文
ふりがな非表示
ふりがな表示
(import java.io.*;)
import java.io.*;
(class sample)
class Sample
({public static void main)
{public static void main
((string[] args)throws ioexception)
(String[] args)throws IOException
({system.out.println(”seisuwonyuuryokusimashou”);)
{System.out.println("整数を入力しましょう");
(bufferedreader br =)
BufferedReader br =
(new bufferedreader)
new BufferedReader
((new inputstreamreader(system.in));)
(new InputStreamReader(System.in));
(string str =br.readline();)
String str =br.readLine();
(int num = integer.parseint(str);)
int num = Integer.parseInt(str);
(system.out.println)
System.out.println
((num + ”ganyuuryokusaremasita。”}})
(num + "が入力されました。"}}