Scanner scanner = new Scanner(System.in);
while(true){
System.out.println("실행할 서비스를 선택하세요 : ");
String input = scanner.nextLine(); //block loop
try{
//input 값으로 분기하여 필요한 로직 수행
//이 안에서 Exception 발생 가능성 있음
}catch(Exception e){
scanner.reset(); //Exception이 발생해도 중지되지 않고 계속 입력을 받을 수 있도록 처리
}
}