Java/API

[Java API] Class Integer

정코드 2019. 3. 30. 19:33


Class Integer


java.lang.Object

java.lang.Number

java.lang.Integer




public final class Integer

extends Number

implements Comparable<Integer>


이 클래스는 기본 자료형 int를 객체 내에 포장합니다.



Method


public int intValue()


해당 Integer의 값을 int로 반환합니다.


public static int parseInt(String s)


s를 부호있는 int 값으로 변환합니다.


Throws:

NumberFormatException - 문자열에 int 값으로 변환할 수 없는 문자가 포함된 경우