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 |
Tags
- javascipt
- Login
- JavaScript
- Express.js
- 연동
- javscript
- v-if
- 템플릿문법
- 음양더하기
- Reduce
- programmers
- v-for
- node.js
- state
- 콘솔한글깨짐
- kibana
- Vue.js
- mutations
- v-on
- getters
- IntelliJ
- KAKAO
- Emit
- axios
- vuex
- mixins
- sns로그인
- azure
- includes
- react
Archives
- Today
- Total
공부용
좌석선택 본문
좌석현황을 보여준다.
int col = 65;
for(int i=0; i<seat.length(); i++) {
if(i%5 == 0 ) { //행알파벳
if(i != 0 )
System.out.printf("\n\t\t\t%c ",col++);
else
System.out.printf("\t\t\t%c ",col++);
}
if(seat.charAt(i)=='0') { //좌석 배치도 모양
System.out.printf("%c ",'□');
} else {
reserved.add(new Seat((char)(col-1)+"",((i%5)+1)+""));
System.out.printf("%c ",'■');
}
}
결과확인
'2020.10 ~ 2021.03 취업성공패키지 > 영화관 관리(Java)' 카테고리의 다른 글
메모장에 예약된 자리 바꾸기 (0) | 2021.01.27 |
---|---|
결제 (0) | 2021.01.27 |
영화관 선택 (0) | 2021.01.20 |
영화 선택 (0) | 2021.01.20 |
로그인 (0) | 2021.01.17 |
Comments