728x90
반응형
- 에러 코드 : HashSet<int> hs = new HashSet<int>();
- 에러메시지 :
Unresolved compilation problem: Syntax error, insert "Dimensions" to complete ReferenceType
- 해석 : 문법적으로 자료형을 넣을 수 있는 건 참조형이다. 기본형은 안되고, 참조형을 집어넣어라
- 해결방안 : int를 Integer 래퍼클래스로 바꾸기
HashSet<Integer> hs = new HashSet<Integer>();
728x90
반응형
'Trouble Shooting(Error)' 카테고리의 다른 글
[Java_Error] java.io.NotSerializableException (0) | 2022.03.30 |
---|---|
[Java_Error] 자바 파일 쓰기 액세스 거부(FileNotFoundException) (0) | 2022.03.28 |
[Java_Error] java.util.NoSuchElementException (0) | 2022.03.24 |
[Java_Error] NullPointerException (0) | 2022.03.10 |
[Java_Error] Implicit super constructor (class 이름) is undefined. Must explicitly invoke another constructor (0) | 2022.01.18 |