일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- atlas
- javascript
- java
- json
- CSS
- venv
- pymongo
- flask
- get
- Crawling
- flaskframework
- Project
- CRUD
- openapi
- NAS
- requests
- github
- POST
- backend
- mysql
- body
- Algorithm
- PYTHON
- fetch
- beautifulsoup
- mongodb
- frontend
- synology
- portfolio
- OOP
- Today
- Total
목록Control Flow Statements (4)
wisePocket
구구단을 만들자. 조건 : 2~9단까지 출력하는 구구단 Scanner를 통해 입력된 단수는 제외(continue)하고 출력 Scanner sc = new Scanner(System.in); int passNum = sc.nextInt(); // 출력을 제외 할 구구단 수 입력 for (int i = 2; i
전부터 항상 초기값, 초기화한다라는 한국말이 어색해서 Oracle 공식 문서를 찾아봤다. 초기화, 초기값 이말은 initiate로 이해하는게 좋겠다. 시작값이라는게 더 머릿속에 와닿는다. 이니시에이팅의 이니시다. for의 작동 흐름 for ( initialization; termination; increment;) { statement } for ( int i = 0; i>5 ; i++ ) { } //for (초기값 ; 조건문 ; 증가연산) {} for(int i=0; i
조건문은 제어문 중 하나로 프로그램이 실행 흐름을 개발자가 조절 하기 위해서 사용한다. switch문은 조건문 중 하나로 if와 비슷하게 동작하지만 피연산자의 조건이 맞을 때 스위치를 키는 듯한 묘사로 파악하면 좋다. 몇가지 차이점이 있다. switch문 //1.2)조건문 - Switch문 int month = 8; String monthString = " "; switch(month) { // case ~ : 연산 case 1: monthString = "1월"; break; case 2: monthString = "2월"; break; case 3: monthString = "3월"; break; ... case 11: monthString = "11월"; break; case 12: monthStr..
조건문은 제어문 중 하나로 프로그램이 실행 흐름을 개발자가 조절 하기 위해서 사용한다. 그 중 조건을 사용하여 흐름을 조절하는 조건문의 기본 형태들을 타이핑하며 다시 익숙해지려고 한다. Eclipse에서 IntelliJ로 갈아타서 조금 어색한 부분이 있어서 손이 얼었다. Keymap을 어느정도 나에게 맞춰서 사용하는데도 뭔가 어색한 부분도 있고, 좀 더 가볍고 편한 IDE같다. 아마도 계속해서 연간 구독을 하지 않을까 싶다. 익숙해질때 까지 클래스를 생성하고 public static void main(String[] args){}부터 안에 코드까지 모두 직접 치는 연습을 다시 하고 있다. 조금 익숙해지면 template를 하나씩 만들 예정이다. 기본 : if, else //제어문(프로그램의 실행 방향을 ..