숙제)아이디 중복 체크 저장용


숙제)아이디 중복 체크 저장용

아이디_중복 체크 _ 저장용 >내가 만든 아이디 중복 체크 public static void overlapCheck(List list ,UserDTO userDTO) { for (UserDTO s : list) { while (true) { if (s.getEmail().equals(userDTO.getEmail())) { System.out.print("중복된 아이디입니다\n다시입력 >"); userDTO.setEmail(sc.next()); } else if (!userDTO.getEmail().equals(s.getEmail())) { break; } } } } > 실행은 잘 되지만 선생님이 원하는 답은 아님 > 가장 큰 문제는 뭐가 문제인지 모르겠음 > 따로 알아본 결과 나는 저기에 사용된 use..


원문링크 : 숙제)아이디 중복 체크 저장용