시험이 이틀 뒤인만큼 너무 자료구조 과목과 거리감있는 공부는 지양하기로.. 빠르게 훑고 넘어가자.
int[] a; // array declaration
a = new int[2]; // length specification
int[] b = {1, 2, 3, 4}; // array declaration with assignment
int bLength = b.length; // get the length of an array
(smooooth operrrration~~)
for (int i = 0; i < ~~.length; i++) {
System.out.println(~~);
}
while (i < ~) {
System.out.println(~~);
}
do {
System.out.println(~~);
} while (i < ~)
System.out.println();System.out.print();finalOverriding
Subclass에서 superclass와 같은 signature를 가진 new instance method를 선언한 것.
Hiding
Subclass에서 superclass와 같은 signature를 가진 new static method를 선언한 것.