You are here: Home / Topics / Program to explain Wrapper class with function in Java

Program to explain Wrapper class with function in Java

Filed under: Java on 2023-09-19 08:08:18

//  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

About Author:
S
Shyam Dubey     View Profile
If you are good in any field. Just share your knowledge with others.