Skip to content
Discussion options

You must be logged in to vote

각 메서드를 표로 사용할 수 있는 클래스 또는 매개변수로 받을 수 있는 타입반환 타입, 역할에 대해 표로 정리 해보았습니다.

parselnt() 정리

메서드 매개변수로 받을 수 있는 타입 반환 타입 역할
parseInt() String int 문자열을 기본형 int로 변환

valueOf() 정리

래퍼 클래스 매개변수로 받을 수 있는 타입 반환 타입 역할
Integer String Integer 문자열을 Integer 객체로 변환
int Integer 기본형 intInteger 객체로 변환
Long String Long 문자열을 Long 객체로 변환
long Long 기본형 longLong 객체로 변환
Double String Double 문자열을 Double 객체로 변환
double Double 기본형 doubleDouble 객체로 변환
Float String Float 문자열을 Float 객체로 변환
float Float 기본형 floatFloat 객체로 변환
Short String Short 문자열을 Short 객체로 변환
short Short 기본형 shortShort 객체로 변환
Byte String Byte 문자열을 Byte 객체로 변환
byte Byte 기본형 byteByte 객체로 변환
Boolean St…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Pracrobo
Comment options

Answer selected by Pracrobo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants