일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- docker example
- #1차원배열
- git flow
- relative path
- #자바상속#자바이즈어#is~a
- #JAVASCRIPT
- html youtube
- #CallByAddress
- html video
- #성적관리프로그램
- #binary
- html charset
- 하이퍼레저패브릭
- #C++ 연산자함수오버로딩
- 토큰경제
- html multimedia
- html object
- #C++ has~a
- border-box
- html code
- mac terminal command
- #다차원포인터
- html5 new tag
- #3차원배열
- hyperledger transaction
- #2차원배열
- html id
- html plug-in
- #bubbleSort
- #android activity
Archives
- Today
- Total
목록#이차원배열 (1)
A sentimental robot
Two dimensional array
public class Hello2 { public static void main(String[] ar) { int[][] arr; // int 이차원 배열을 접근하겠다!!고 하는 배열 참조변수 선언 (메소드영역) arr = new int[2][3]; // new연산자로 arr이 가르키는 배열 생성 (힙영역) for (int i = 0; i< 2; i++) { for (int j = 0; j< 3; j++) { arr[i][j] = i + j; } for (int i = 0; i < 2; i++) { for (int j = 0; j < 3; j++) { System.out.println(arr[i][j]); //012 123출력 } } } } public class Hello2 { public stati..
Java
2017. 12. 28. 10:45