1 package test; 2 3 public class Test6 { 4 5 public static void main(String [] args){ 6 empty(); 7 8 int1(1); 9 int1(-1); 10 11 int2(2,3); 12 int2(4,5); 13 14 int3(1,2,3); 15 int3(4,5,6); 16 17 floatCharDoubleBooleanShortLongByte((float)1.23, 'd', 4.5678, true, (short)60000, 5000000000l, (byte)127); 18 floatCharDoubleBooleanShortLongByte((float)-1.23, 'e', 3.4567e-10, false, (short)-60000, -5000000000l, (byte)-128); 19 20 string("hello"); 21 string("world"); 22 string(null); 23 string("\"bla \\ble\\\t\r\n blu blo\""); 24 25 Test6 t = new Test6(); 26 t._empty(); 27 28 t._int1(9); 29 t._int1(8); 30 31 t._int2(7,6); 32 t._int2(5,4); 33 34 t._int3(3,2,0); 35 t._int3(-1,-2,-3); 36 t._floatCharDoubleBooleanShortLongByte((float)1.23, 'd', 4.5678, true, (short)60000, 5000000000l, (byte)127); 37 t._floatCharDoubleBooleanShortLongByte((float)-1.23, 'e', 3.4567e-10, false, (short)-60000, -5000000000l, (byte)-128); 38 } 39 40 static void empty() { 41 } 42 43 static void int1(int i) 44 { 45 } 46 47 static void int2(int i1, int i2) 48 { 49 } 50 51 static void int3(int i1, int i2, int i3) 52 { 53 } 54 55 static void floatCharDoubleBooleanShortLongByte(float f, char c, double d, boolean b, short s, long i, byte by) 56 { 57 } 58 59 static void string(String s) 60 { 61 } 62 63 64 private void _empty() { 65 } 66 67 private void _int1(int i) 68 { 69 } 70 71 private void _int2(int i1, int i2) 72 { 73 } 74 75 private void _int3(int i1, int i2, int i3) 76 { 77 } 78 79 private void _floatCharDoubleBooleanShortLongByte(float f, char c, double d, boolean b, short s, long i, byte by) 80 { 81 } 82 } | Popular Tags |