Pages

Ads 468x60px

Monday 17 December 2012

Wrapper Class



    1.WAJP to demonstrate wrapper classes, and to fix the precision.
                                              download for wrapper class    
    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);
   
  }
   

0 comments:

Post a Comment

 

Sample text

Sample Text

Sample Text