1 import java.applet.Applet; 2 import java.awt.*; 3 import java.awt.event.*; 4 5 6 public class ArrayParameterTestApplet 7 extends Applet 8 { init()9 public void init() 10 { 11 setLayout(new BorderLayout()); 12 } 13 14 start()15 public void start() 16 { 17 } 18 19 stop()20 public void stop() 21 { 22 } 23 24 destroy()25 public void destroy() 26 { 27 } 28 29 arrayFunction(String [] array)30 public void arrayFunction(String [] array) { 31 System.out.println("arrayFunction called"); 32 for (int i = 0; i < array.length; i++) 33 System.out.println(array[i]); 34 } 35 booleanFunction(boolean[] array)36 public void booleanFunction(boolean[] array) { 37 System.out.println("booleanArray called"); 38 for (int i = 0; i < array.length; i++) 39 System.out.println(array[i]); 40 } 41 byteFunction(byte[] array)42 public void byteFunction(byte[] array) { 43 System.out.println("byteArray called"); 44 for (int i = 0; i < array.length; i++) 45 System.out.println(array[i]); 46 } 47 charFunction(char[] array)48 public void charFunction(char[] array) { 49 System.out.println("charArray called"); 50 for (int i = 0; i < array.length; i++) 51 System.out.println(array[i]); 52 } 53 shortFunction(short[] array)54 public void shortFunction(short[] array) { 55 System.out.println("shortArray called"); 56 for (int i = 0; i < array.length; i++) 57 System.out.println(array[i]); 58 } 59 intFunction(int[] array)60 public void intFunction(int[] array) { 61 System.out.println("intArray called"); 62 for (int i = 0; i < array.length; i++) 63 System.out.println(array[i]); 64 } 65 longFunction(long[] array)66 public void longFunction(long[] array) { 67 System.out.println("longArray called"); 68 for (int i = 0; i < array.length; i++) 69 System.out.println(array[i]); 70 } 71 floatFunction(float[] array)72 public void floatFunction(float[] array) { 73 System.out.println("floatArray called"); 74 for (int i = 0; i < array.length; i++) 75 System.out.println(array[i]); 76 } 77 doubleFunction(double[] array)78 public void doubleFunction(double[] array) { 79 System.out.println("doubleArray called"); 80 for (int i = 0; i < array.length; i++) 81 System.out.println(array[i]); 82 } 83 objectFunction(Applet[] array)84 public void objectFunction(Applet[] array) { 85 System.out.println("objectArray called"); 86 for (int i = 0; i < array.length; i++) 87 System.out.println(array[i]); 88 } 89 } 90