1. import java.applet.Applet;
  2. import java.awt.*;
  3. import java.awt.event.*;
  4.  
  5. public class array extends Applet
  6. implements ActionListener {
  7. /**
  8. *
  9. */
  10. Label prompt2;
  11. TextField input2;
  12. int num1, num2, output, count;
  13. int x[] = new int[101];
  14.  
  15. public void init()
  16. {
  17.  
  18. prompt2=new Label("Enter One of Your 20 Numbers");
  19. add(prompt2);
  20.  
  21. input2=new TextField(10);
  22. input2.addActionListener(this);
  23. add(input2);
  24.  
  25. }
  26.  
  27. public void paint(Graphics g)
  28. {
  29. g.drawString("Your Numbers are "+ output,70,75);
  30.  
  31. }
  32.  
  33.  
  34. public void actionPerformed(ActionEvent e)
  35. {
  36. num2=Integer.parseInt(input2.getText());
  37. while (count = 10 && num2 =100; i++) {
  38. if (x[i]==1) i = output;
  39. }
  40.  
  41. }
  42.  
  43. }
  44.