// Program to use Simple Wrapper Class.
class Wrapper1
{
public static void main( String args[ ] )
{
// Boxing
Integer iOb = new Integer(100);// Unboxing
int i = iOb.intValue();System.out.println(i + " : " + iOb);
}
}
Output:100 : 100
// Program to use Simple Wrapper Class.
class Wrapper1
{
public static void main( String args[ ] )
{
// Boxing
Integer iOb = new Integer(100);// Unboxing
int i = iOb.intValue();System.out.println(i + " : " + iOb);
}
}
Output:100 : 100
Array of String Example in Java
Program to find average of elements of an array in Java
Exit() function example in Java
Program to draw line in Applet using drawLine() method in Java
Program to use wait( ) and notify( ) and implementing from Runnable interface in Java
Java program to add all the digits of a given positive number
Program to get Maximum element from Array in Java
Simple program to check day by day number using if elsein Java
Java Program to find area of rectangle
Make 2D array by taking user input through keyboard in Java
Java program to sort an array in ascending order
Default Exception Handler of JVM
Program to Serialize Student Deserialize student object in Java
compareTo() method example in Java