1.WAJP
to demonstrate wrapper classes, and to fix the precision.
Program:
class Integer
{
public static void main(String[] args)
{
Integer y=new Integer(567);
int x=y.int value();
x++;
y=new Integer(x);
System.out.println("y=" +y);
}
{
public static void main(String[] args)
{
Integer y=new Integer(567);
int x=y.int value();
x++;
y=new Integer(x);
System.out.println("y=" +y);
}
0 comments:
Post a Comment