01.
package
com.java.myapp;
02.
03.
public
class
MyClass {
04.
05.
public
static
void
main(String[] args) {
06.
07.
String a =
"123"
;
08.
Integer b = Integer.valueOf(a);
09.
System.out.println(b);
10.
11.
int
c =
456
;
12.
Integer d = Integer.valueOf(c);
13.
System.out.println(d);
14.
15.
}
16.
17.
}