public class Main {
public static void var(int... x) //1
{
System.out.println("int... x");
}
public static void var(Object... x) //2
{
System.out.println("Object... x");
}
public static void var(Integer... x) //3
{
System.out.println("Integer...");
}
public static void main(String... args)
{
int i = 0;
Integer i2 = 127;
var(i, i2);
}
}
Login in to like
Login in to comment