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-4"></span> + &quot; And &quot; + obI); 
}

Users who found this page were searching for:

  • autobox jdk 6
  • autobox java
  • Auto Box function java
  • autobox java
  • autobox in java
  • autobox in arraylist in java
  • java autobox integer
  • autobox vs unbox
  • autobox java example

No comments yet.

Leave a Comment