2017-05-30から1日間の記事一覧

13-3

public class ExceptionTest5 { public static void main(String[] args) { try { method1(0); method2(0); method3(0); } catch (Exception e) { System.out.println("例外:" + e ); } } static void method1(int x) throws Exception { } static void met…

13-1

public class ExceptionTest3 { public static void main(String args) { int myarray = new int[3]; myAssign(myarray,100,0); System.out.println("終了します"); } static void myAssign(int[] arr, int index, int value) { System.out.println("myAssig…