| 1 |
class multiparams |
| 2 |
{ |
| 3 |
public static void printMessage10(Object a, String b, short c, char d, boolean e, byte f, float g, double h, long i, int j) { } |
| 4 |
public String toString() { return "just a multiparams"; } |
| 5 |
|
| 6 |
public static void main(String[] args) throws InterruptedException |
| 7 |
{ |
| 8 |
System.out.println("multiparams test started, waiting"); |
| 9 |
Thread.sleep(20000); |
| 10 |
System.out.println("multiparams test function started"); |
| 11 |
final int i = 42; |
| 12 |
final long j = 254775806; |
| 13 |
final double k = 3.14159265359; |
| 14 |
final float l = 2.71828f; |
| 15 |
final byte n = 10; |
| 16 |
final boolean o = true; |
| 17 |
final char p = 'a'; |
| 18 |
final short q = 14; |
| 19 |
final String r = "hello"; |
| 20 |
final Object s = new multiparams(); |
| 21 |
printMessage10(s, r, q, p, o, n, l, k, j, i); |
| 22 |
final Object nothing = null; |
| 23 |
printMessage10(nothing, r, q, p, o, n, l, k, j, i); |
| 24 |
System.out.println("multiparams test function completed"); |
| 25 |
} |
| 26 |
} |