일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Vue.js
- v-for
- JavaScript
- javascipt
- v-on
- getters
- mutations
- state
- IntelliJ
- vuex
- javscript
- 템플릿문법
- axios
- Reduce
- 연동
- azure
- kibana
- 음양더하기
- includes
- node.js
- Emit
- 콘솔한글깨짐
- KAKAO
- v-if
- react
- sns로그인
- programmers
- Express.js
- Login
- mixins
- Today
- Total
목록2020.10 ~ 2021.03 취업성공패키지/영화관 관리(Java) (8)
공부용
private static String changeSeat(String beforeSeat, String reservedSeat) {//자리변경 0->1 //현재예약현황 String[] cols = new String[] { "A", "B", "C", "D", "E"}; String[] rows = new String[] { "1", "2", "3", "4", "5"}; String[] reserved = reservedSeat.split(" "); String afterSeat = ""; int count = 0; //예약된자리 change logic for(int i=0; i

휴대폰 결제 Scanner scan = new Scanner(System.in); System.out.print("\t\t카드 번호를 '-'없이 입력하세요 : "); String cardNum = scan.nextLine(); System.out.print("\t\t카드 비밀번호를 입력하세요 : "); String cardPw = scan.nextLine(); System.out.print("\t\t카드사를 입력하세요 : "); String cardCorp = scan.nextLine(); System.out.print("\t\t유효기간을 입력하세요 : "); String cardExp = scan.nextLine(); CardInfo cardInfo = new CardInfo(cardNum, cardP..

좌석현황을 보여준다. int col = 65; for(int i=0; i

영화지점을 먼저 선택한다 while(loop) { System.out.println("==============================================================================================="); System.out.println("[ 쌍 용 영 화 관 ]"); System.out.println("\t\t\t\t극 장 목 록"); System.out.println(); System.out.println("==============================================================================================="); for(int i=0; i 0 && sel 0 && max 2..

현재 상영중인 영화를 선택한다. BufferedReader reader = new BufferedReader(new FileReader(PATH)); // movieList파일을 읽어서 제목(movieInfo[0])과 감독(movieInfo[5])를 String형태로 만들어서 ArrayList에 넣는다. // ArrayList에서 꺼내서 보여주고, 그 중 하나를 고르면 그걸 index로 정보를 찾을 계획. String line=null; while((line=reader.readLine())!=null) { String[] movieInfo=line.split("■"); // 현재 상영중인 영화여야 한다는 조건! // 즉, 상영종료일-현재날짜가 양수여야 한다! long nowTick=now.getTime..

Path data = new Path(); String path = data.userPath + "userList.txt"; File file = new File(path); BufferedReader reader = new BufferedReader(new FileReader(file)); String line = ""; while((line = reader.readLine()) != null) {//한 라인에 아이디가 있는지 없는지 확인함 String[] userInfo = line.split("■"); if(userInfo[0].equals(inputId)) {//아이디가 있으면 bool = true; if(userInfo[1].equals(inputPw)) {//비밀번호 비교 System.out...

아이디 찾기 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(); String readPath = path.userPath+"userList.txt"; File file = new File(readPath); BufferedReader reader = new BufferedReader(new FileReader(file)); BufferedWriter writer = new BufferedWriter(new FileWriter(file, true)); String line = ""; Scanner scan = new Scanner(System.in); while((line = reader.readLine()) != null) { String []info = line.split("■"); if(info[0].in..