找错!!!
class Method{
boolean print(int i)
{
System.out.println("returns a boolean"+i);
return true;
}
long print(long i)
{
System.out.println("returns a long"+i);
return i;
}
}
public class Overload
{
public static void main(String[] args)
{
Method m1=new Method();
m1.print(2);
m1.print(32768);
}
}