예제 1 public class MethExam02 { public static void main(String[] args) { int[] arr = {10,20,30,40,50,60,70,80,90,100}; //int arr[] = new int[0]; Numbers obj = new Numbers(arr); obj.getTotal(); try { obj.getAvg(); } catch(java.lang.ArithmeticException e) { // 에러 코드 System.out.println("평균 계산 중 에러 발생!!!"); } System.out.println("합계 = " + obj.tot); System.out.println("평균 = " + obj.avg); } } 오류 없이 합계, ..