JAVA CODE

//A sample of array program
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;

public class Samplearray extends Applet
             implements ActionListener
{
   Label Lbl1;
   TextField Text1;
   Button Enter1;
   int Score [], Num;
   final int Max = 10;

   public void init()
   {
      Lbl1 = new Label("Please Enter 10 Scores:");
      add(Lbl1);

      Text1 = new TextField(3);
      add(Text1);

      Enter1 = new Button("Enter");
      Enter1.addActionListener(this);
      add(Enter1);

      Score = new int[Max];
    }

    public void paint ( Graphics g )
    {
       for ( int i=0 ; i