// Program to explain Wrapper class with function.
class Wrapper3
{
static int func(Integer v)
{
return v ;
}public static void main(String args[ ])
{
Integer iOb = func(100);
System.out.println(iOb);
}
}
Output:100
// Program to explain Wrapper class with function.
class Wrapper3
{
static int func(Integer v)
{
return v ;
}public static void main(String args[ ])
{
Integer iOb = func(100);
System.out.println(iOb);
}
}
Output:100
Exit() function example in Java
Java program to sort an array in ascending order
Use of this keyword example in Java
Program to use super to access super class instance variables in Java
Read array from keyboard in Java
Program to draw rounded rectangle in Applet using drawRoundRect() method in Java
Nested if-else example in Java
Program to display all parts of URL in Java
Program to find leap year in Java
Multiple exceptions in single catch block example in Java
Program to explain static import statement in Java
getChars() method example in Java
Program to use Window Event in Java
How to get Database data using Hibernate? Explained by Impl class