Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- node.js
- state
- v-for
- getters
- sns로그인
- Emit
- includes
- KAKAO
- v-on
- IntelliJ
- v-if
- 템플릿문법
- programmers
- JavaScript
- Express.js
- Login
- javscript
- azure
- mutations
- Vue.js
- 연동
- 음양더하기
- axios
- react
- Reduce
- javascipt
- kibana
- vuex
- mixins
- 콘솔한글깨짐
Archives
- Today
- Total
공부용
아이디/비밀번호 찾기 본문
아이디 찾기
Path path = new Path();
File file = new File(path.userPath + "userList.txt");
BufferedReader reader = new BufferedReader(new FileReader(file));
String line = "";
boolean bool = true;
while((line = reader.readLine()) != null) {
String[] info = line.split("■");
if(info[3].equals(phone)) {
System.out.printf("\t\t\t%s\n",info[0]);
bool = false;
break;
}
if(bool)
System.out.println("\t\t\t아이디가 존재하지 않습니다.");
비밀번호 찾기(전화번호와 아이디를 매칭해서 검색한다)
Path path = new Path();
File file = new File(path.userPath + "userList.txt");
BufferedReader reader = new BufferedReader(new FileReader(file));
boolean bool = true;
String line = "";
while((line = reader.readLine()) != null) {
String[] info = line.split("■");
if(info[3].equals(phone) && info[0].equals(id)) { //번호와 아이디가 일치하면
System.out.printf("\t\t\t%s\n",info[1]);
bool = false;
break;
}
}
if(bool) //일치하지 않을때
System.out.println("\t\t\t정보가 일치하지 않습니다.");
결과화면
'2020.10 ~ 2021.03 취업성공패키지 > 영화관 관리(Java)' 카테고리의 다른 글
좌석선택 (0) | 2021.01.20 |
---|---|
영화관 선택 (0) | 2021.01.20 |
영화 선택 (0) | 2021.01.20 |
로그인 (0) | 2021.01.17 |
회원가입 (0) | 2021.01.17 |
Comments