Autobox et unbox: Mixage de Integer et Double

Author:


{filelink=11195}

public class DoubleAutoBox {
  public static void main(String args[]) {

    Integer obI = 100;;
    Double obD = 17.5;

    obD = obD + obI;
    System.out.println("obD après l'expression: " + obD);
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *