일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- ubuntu
- JEUS6.0
- VBA
- 윈도우10
- 간접 표현식
- bluestack
- 다윈스트리밍서버
- Sculpt Erogonomic Desktop
- 모바일게임
- IT 인코딩 encoding
- 초대장
- 세븐나이츠
- 붕괴3
- 처비
- 하스스톤
- 윈도우 10
- 다윈 스트리밍 서버
- Windows 10
- 세나
- IT
- 클래시 로얄
- 간접표현식
- WebtoB
- Clash Royale
- gson
- HTML
- Http Live Streaming Server
- jQuery
- JEUS
- WiFi
- Today
- Total
공책
for 문 for (int cnt = 0; cnt < 10; cnt ++){System.out.println(cnt);} int arr[] = { 10, 20, 30, 40, 50}; for (int cnt = 0; cnt < arr.length; cnt++){System.out.println(arr[cnt]);}//배열의 길이만큼 반복 향상된 for문for( int num:arr){System.out.println(num);} break를 이용 반복문 빠져나가기 for (int row = 0; row < 3; row++){for (int col = 0; col < 5; col++){System.out.println("("+row+","+col+")");if((row==1)&&(col==3))break;}}
if (num1 > num2)System.out.println("num1 값이 더 큽니다") // num1이 num2보다 크면 다음라인 실행 elseSystem.out.println("num2 의 값이 더 큽니다")// num2 가 더 크면 실행 if (num < 10) {System.out.println("num의 값은 10 미만입니다.");} else if (num < 10) {System.out.println("num의 값은 10 이상 100 미만입니다.");} else if (num < 1000) {System.out.println("num의 값은 100이상 1000 미만입니다.");} else {System.out.println("num의 값은 1000이상입니다.");} if거나 else if ..
1차원 배열 int arr[];arr = new int[10];arr[0] = 10;arr[1] = 20;arr[2] = arr[0] + arr[1];System.out.println(arr[0]);System.out.println(arr[1]);System.out.println(arr[2]); 2차원 배열 int table[][] = new int[3][4];table[0][0] = 10;table[1][1] = 20;table[2][3] = table[0][0] + table[1][1]; System.out.println(table[0][0]);System.out.println(table[1][1]);System.out.println(table[2][3]); 배열의 크기 구하는 함수 배열.length
a += b -> a = a + b a -= b -> a = a - b a *= b -> a = a * b a /= b -> a = a / b a %= b -> a = a % b
헝가리안 표기법변수명 작성 시에 변수명 앞에 자료형을 구분지을 수 있게 표기하는 방법 active -> bActive Boolean 변수size -> nSize 정수 변수size -> fSize 실수 변수name -> strName 문자열 변수pi=3.14 -> PI=3.14... 상수값(변수를 대문자로)size -> g_nSize 전역변수snow -> ins_Snow 인스턴스 변수 카멜( 낙타 ) 표기법맨 앞의 단어는 소문자 뒤에 따라오는 단어의 첫글자만 대문자로 표기하는 방법 getPersonList, insertNumber