/* * ArrayApplet.java * * Created on October 26, 2004, 10:53 AM */ /** * * @author levenick */ public class ArrayApplet extends java.applet.Applet { /** Initialization method that will be called after the applet is loaded * into the browser. */ public void init() { char [] letters = new char[100]; String s = "pals"; for (int i=0; i=0; i--) { System.out.print(letters[i]); } System.out.println("\ngoodbye\n"); } /*public void init() { int [] list = new int[5]; for (int i=0; i<5; i++) { list[i] = i*i; } for (int i=0; i<5; i++) { System.out.println("i=" + i + " list[i]=" + list[i]); } } **/ /* i=0 list[i]=0 i=1 list[i]=1 i=2 list[i]=4 i=3 list[i]=9 i=4 list[i]=16 public void init() { int [] list = new int[10]; for (int i=0; i<10; i++) { System.out.println("i=" + i + " list[i]=" + list[i]); } } i=0 list[i]=0 i=1 list[i]=0 i=2 list[i]=0 i=3 list[i]=0 i=4 list[i]=0 */ }