[Mini Project] Library Service : 유틸리티 및 예외처리(Util&Exception)
·
◈ Human Project/Mini : Library Service📚
- Library Service : 유틸리티 및 예외처리(Util&Exception) 1. 유틸리티(Util) package util; import java.util.Scanner; import exception.RangeException; public class LibUtil { private static Scanner scanner = new Scanner(System.in); public static String nextLine(String input) { System.out.print(input); return scanner.nextLine(); } public static String nextLine(String input, boolean korean, boolean num) { System.o..
[Student] Exception 적용(RangeException, NumberFormatException)
·
◈ Human Project/Custom : Student🏫
[Student] interface 분리, ArrayList로 배열 수정 1. interface 분리 package service; public interface StudentService { void list(); void register(); void modify(); void remove(); } 2. ArrayList로 배열 수정 - class StudentServiceImpl List stude.. yermi.tistory.com 1. class RangeException 생성하기 package exception; public class RangeException extends RuntimeException { private int start; private int end; public Rang..