OverloadingOrderpublic class OverloadingOrder extends Object
Methods Summary |
---|
public static void | main(java.lang.String[] args)
print("String first", 11);
print(99, "Int first");
| static void | print(java.lang.String s, int i)
System.out.println(
"String: " + s +
", int: " + i);
| static void | print(int i, java.lang.String s)
System.out.println(
"int: " + i +
", String: " + s);
|
|