Wrapping data in Wrapper class
Java Programming Language OOPs concept more (Article) OOPs concept more (Program)
1180Program:
public class Wrapping { public static void main(String args[]) { Integer x =Integer.valueOf(19); Double c = Double.valueOf(15); Float a = Float.valueOf("180"); Integer b = Integer.valueOf("744",16); System.out.println(x); System.out.println(c); System.out.println(a); System.out.println(b); } }
Output:
19 15.0 180.0 1860 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.