Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to autobox and unbox.


{filelink=11192}

public class AutoBox {
  public static void main(String args[]) {
 
    Integer obI = 150; // autobox "int"
 
    int i = obI; // auto-unbox  "int"
 
    System.out.println(i<span id="more-10"></span> + &quot; And &quot; + obI); 
}


Users who found this page were searching for:

  • what is the usage ofjava autobox and unbox
  • autobox bigdecimal

No comments yet.

Leave a Comment