valueOf , xxxValue(), parseInt() 에 대하여 #498
|
자바 문제를 풀다보면 문자열을 기본형으로 변환한다거나, 래퍼타입을 반환한다거나 |
Answered by
Develop-KIM
Nov 8, 2024
Replies: 1 comment 1 reply
|
각 메서드를 표로 사용할 수 있는 클래스 또는 매개변수로 받을 수 있는 타입과 반환 타입, 역할에 대해 표로 정리 해보았습니다. parselnt() 정리
valueOf() 정리
xxxValue() 정리
|
1 reply
Answer selected by
Pracrobo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
각 메서드를 표로 사용할 수 있는 클래스 또는 매개변수로 받을 수 있는 타입과 반환 타입, 역할에 대해 표로 정리 해보았습니다.
parselnt() 정리
Stringintint로 변환valueOf() 정리
IntegerStringIntegerInteger객체로 변환intIntegerint를Integer객체로 변환LongStringLongLong객체로 변환longLonglong을Long객체로 변환DoubleStringDoubleDouble객체로 변환doubleDoubledouble을Double객체로 변환FloatStringFloatFloat객체로 변환floatFloatfloat을Float객체로 변환ShortStringShortShort객체로 변환shortShortshort을Short객체로 변환ByteStringByteByte객체로 변환byteBytebyte을Byte객체로 변환BooleanSt…