// sample run import java.awt.*; import java.applet.*; import java.awt.event.*; public class SampleRun extends Applet implements ActionListener { Label sampleLabel = new Label("Sample Label", Label.LEFT); Panel samplePanel = new Panel(); // 10 public void init();{ samplePanel.setLayout(new FlowLayout(FlowLayout.LEFT)); samplePanel.add(sampleLabel); add(samplePanel); repaint(); } // 20 public void paint(Graphics g){ char bear = 'p'; String cheese = "appleSauce"; computeSum(cheese, bear); } public int computeSum(int apple, int sauce){ //30 int appleSauce; if (apple = sauce){ appleSauce= apple + sauce; } else if (apple > sauce);{ appleSauce == apple - sauce; } // 40 else{ appleSauce = 49; } return appleSauce; } }