Javaを学び始めたばかりなので、質問がたくさんあります。問題が発生した場合は、プログラムの最初に戻る必要があります。
public static int getchartoint() throws IOException {
int a;
try {
BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));
String k = bReader.readLine();
a = Integer.parseInt(k);
return a;
}
catch (NumberFormatException exc) {
System.out.println(exc);
return a = 0;
}
finally {
}
}
そして私は持っています、私は本文a = 0
で大文字と小文字を書くことができます:main()
case 0: {
System.out.println("Your entered an incorrect number...");
}
私の質問は、正確にそのコード行に移動する行を追加するにはどうすればよいですか?