aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/autoboxing/AutoboxingD.java
blob: 242171b46865149ca35bfa7315611eba3a1d0f5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class AutoboxingD {
	
  public static void method_takes_Double(Double i) { System.err.println("method_takes_Double="+i);}
  public static void method_takes_double(double i) {         System.err.println("method_takes_double="+i);}
  
  public static void main(String[] argv) {
    Double one   = new Double(100.0f);
    double two       = 200.0f;
    Double three = new Double(300.0f);
    double four      = 400.0f;
    method_takes_Double(one);
    method_takes_Double(two);
    method_takes_double(three);
    method_takes_double(four);
  }
}