Hi doit,
these are the methods defined in Integer class
1..valueOf
public static Integer valueOf(
String s)
throws NumberFormatException
Returns a new Integer object initialized to the value of the specified String.
2..toString
public String toString()
Returns a String object representing this Integer's value
3..parseInt
public static int parseInt(String s)
throws NumberFormatException
Parses the string argument as a signed decimal integer. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' ('\u002d') to indicate a negative value
4..intValue
public int intValue()
Returns the value of this Integer as an int.
eg.
public class IntegerTest {
public static void main(String args[]){
Integer i = new Integer(124);
System.out.println(" intValue() = "+i.intValue());
System.out.println("toString() = "+i.toString());
System.out.println("valueOf = "+i.valueOf("124"));
System.out.println("parseInt = "+i.parseInt("124"));
}}
i hope this will help u to understand
manila