Created
June 9, 2017 14:53
-
-
Save devetude/9cd446755976a89e03c023e98a77903a to your computer and use it in GitHub Desktop.
배열 (array)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 배열 (array) | |
* | |
* @author devetude | |
*/ | |
public class Main { | |
public static void main(String args[]) { | |
// 배열 선언 방법 1 | |
int[] arr1 = new int[3]; | |
arr1[0] = 1; | |
arr1[1] = 2; | |
arr1[2] = 3; | |
// 배열 선언 방법 2 | |
int[] arr2 = { 1, 2, 3 }; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment