KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > models > Ambiguity


1 /*
2  * Created on Mar 15, 2005
3  *
4  * Author Ben Yu
5  * ZBS
6  */

7 package tests.jfun.models;
8
9 /**
10  * Zephyr Business Solution
11  *
12  * @author Ben Yu
13  *
14  */

15 public class Ambiguity {
16   public static int f(byte i){return 1;}
17   public static int f(short i){return 2;}
18   public static int f(int i){return 4;}
19   
20   public static int f(long i){return 8;}
21   public static int f(java.math.BigInteger JavaDoc i){return 16;}
22   public static int f(float i){return 32;}
23 }
24
Popular Tags