■ あのサイトが使えなくなったのでこちらに投稿します。
データ型の問題を解いていたら解けなかったので検証しました。
public class Problem6_16 {
public static void main(String[] args) {
//選択肢Aは正解
short s =(short)9L;
//選択肢Bは不正解
//byte b = 335;
//選択肢Cは不正解
//float f = 3.14;
//選択肢Dは正解
double d = 123.45;
}
}
プログラミングって難しいですね。
[ 2021年06月13日 - 20:24 ]