contentType이란 프로퍼티를 명시하여야 한다.
http://download.eclipse.org/technology/subversive/0.7/update-site/ 위 주소를 이클립스에서(위 주소는 indigo 릴리즈 2 버전에서 시험 한 것.) help - install new software - work with에 추가한다. 그럼 설치 창이 뜨게 되고 설치하고 리스타트 후에 창이 뜨게 되는데 거기서 svn kit 버전 아무거나 하나만 선택하고 finish를 누른다.
열거형이란 의미상 관련이 있는 상수값들의 집합을 의미한다. 어떤 클래스에 상수로 정의된 변수가 있다고 했을 때, 그 상수의 변경으로 인해서 상수를 참조하는 다른 특정 클래스들도 모두 컴파일을 해야 적용이 되었는데, 상수 대신 열거형을 사용하면 컴파일 하지 않아도 된다. 열거형을 정의 하는 방법은 간단하다. enum 열거형이름 { 열거형상수명1, 열거형상수명2, ....... } enum Military { ARMY, NAVY, AIRFORCE } 열거형의 상수에 접근하는 방법은 간단하다. 마치 클래스의 static멤버의 접근방법과 같은 방법을 취한다.열거형이름.상수명Military.ARMY 모든 열거형은 java.lang.Enum클래스를 조상으로 한다.이 Enum클래스에는 몇가지 메서드가 정의되어 있다...
HashSet은 - Set인터페이스가 구현하고 있는 대표적인 클래스 - 데이터의 저장순서를 유지하지 않고, 데이터 중복을 허용하지 않는다. Colored By Color Scripter™ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 import java.util.*; public class HashSetEx1 { public static void main(String[] args){ HashSet set = new HashSet(); Object[] obj = {"1",new Integer(1),5,8,2,4,10,2,"4","6","8","10"}; for(int i =0; i