gakkie プログラミング 備忘録

tech::expert(現tech camp) 45期

ArrayIndexOutOfBoundsException

210329  JavaSe8 silver 学習p242〜p253(問1〜問20)

問8復習 配列で存在しない要素に対してアクセスしようとした場合に 例外処理を実行する public class Main { public static void main(String[] args) { String[] array = {"A", "B", "C"}; System.out.println(array[3]); } } public class Main { public s…