Skip to content

Instantly share code, notes, and snippets.

@devetude
Created June 9, 2017 14:53
Show Gist options
  • Save devetude/9cd446755976a89e03c023e98a77903a to your computer and use it in GitHub Desktop.
Save devetude/9cd446755976a89e03c023e98a77903a to your computer and use it in GitHub Desktop.
배열 (array)
/**
* 배열 (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