class kadai14_3 {
public static void main(String[] args) {
try{
char[] str = "ABCDEFG".toCharArray();
System.out.println(str[args[0].charAt(0)-'0']);
}catch(kadai14_3 str){
System.out.println("Number is out of the range");
}
}
}
error: incompatible types: kadai14_3 cannot be converted to Throwable
}catch(kadai14_3 str){
どうしてもthrowableになってくれない.シングルクォーテーションをダブルにしてもダメだったしほかのクラスの名前を変えても解決しない.そもそもthrowable とは
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。