|
Java Source Codes
Convert Integer to int
public class MainClass {
public static void main(String args[]) {
Integer iobj1 = new Integer(5);
Integer iobj2 = new Integer("6");
int i1 = iobj1.intValue();
int i2 = iobj2.intValue();
System.out.println("i1 = " + i1);
System.out.println("i2 = " + i2);
}
}
<<<----- Return to
Java Source
Code Questions Page.
Have a Question ?
post your questions here. It
will be answered as soon as possible.
Check
Java Interview
Questions for more Java Interview Questions with answers
Check
Servlet Interview
Questions for more Servlet Interview Questions with answers
Check
Structs Interview
Questions for more Structs Interview Questions with answers
|