// A skeleton applet for the Sentence assignment // Roger Hartley, CS Department, NMSU // Fall 1997 // ????????????? means "put your code here" import java.applet.Applet; import java.awt.*; import java.util.Random; public class Sentence extends Applet { StringBuffer buffer = new StringBuffer(); final String[] nouns = ????????????? final String[] verbs = ????????????? Random gen = new Random(); Button next = new Button(???); TextField field = new TextField(???); public void init() { field.setEditable(false); setLayout(new FlowLayout()); add(next); add(field); } public void start() { ?????????????????? } public void paint(Graphics g) { field.setText(buffer.toString()); } public boolean action(Event event, Object arg) { if (event.target == next) { buffer.setLength(0); start(); repaint(); } return true; } }