Created
August 19, 2015 00:15
-
-
Save ParkMinKyu/6a109bc54ff61faca065 to your computer and use it in GitHub Desktop.
배열 예제
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
public class 배열{ | |
public static void main(String args[]){ | |
int a [] = new int[4]; | |
System.out.println("Array a length : " + a.length); | |
for(int i = 0 ; i < a.length ; i++){ | |
a[i] = (i + 10); | |
} | |
for(int i = 0 ; i < a.length ; i++){ | |
System.out.println("a[" + i + "] : " + a[i]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment