Program to demonstrate Wrapper Classes

import java.lang.Float;
import java.lang.Double;

public class WrappedClassApp {
 public static void main(String args[]) {
  Boolean b1 = new Boolean("TRUE");
  Boolean b2 = new Boolean("FALSE");
  System.out.println(b1.toString()+" or "+b2.toString());
  for(int j=0;j<16;++j)
   System.out.print(Character.forDigit(j,16));
  System.out.println();
  Integer i = new Integer(Integer.parseInt("ef",16));
  Long l = new Long(Long.parseLong("abcd",16));
  long m=l.longValue()*i.longValue();
  System.out.println(Long.toString(m,8));
  System.out.println(Float.MIN_VALUE);
  System.out.println(Double.MAX_VALUE);
 }
}

1 comments:

Anonymous said...

Hi there to every one, it's truly a good for me to pay a quick visit this web page, it contains useful Information.

Look into my web site ... home cellulite treatment

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|