일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- html code
- 토큰경제
- html object
- html multimedia
- #C++ 연산자함수오버로딩
- relative path
- #CallByAddress
- html id
- #성적관리프로그램
- #자바상속#자바이즈어#is~a
- hyperledger transaction
- #bubbleSort
- #binary
- #2차원배열
- html plug-in
- html youtube
- mac terminal command
- html5 new tag
- 하이퍼레저패브릭
- #android activity
- #1차원배열
- git flow
- html charset
- html video
- #C++ has~a
- #JAVASCRIPT
- docker example
- #다차원포인터
- border-box
- #3차원배열
Archives
- Today
- Total
A sentimental robot
Reference's reference 본문
public class Day1 {
public static void main(String[] args) {
int[][] arr;
arr = new int[2][];
arr[0] = new int[2];
arr[1] = new int[4];
for (int i = 0; i < arr.length; i++) {
for (int j = 0; j < arr[i].length; j++) {
arr[i][j] = i + j;
}
}
for (int i = 0; i < arr.length; i++) {
for (int j = 0; j < arr[i].length; j++) {
System.out.println(arr[i][j]);
}
}
}
}
'Java' 카테고리의 다른 글
Generic (0) | 2017.12.29 |
---|---|
도서관리프로그램 (0) | 2017.12.29 |
InetAddress Class (0) | 2017.12.29 |
Map을 이용한 성적관리 (0) | 2017.12.29 |
Map (0) | 2017.12.29 |