You need to write code in an applet that will call the submitData method when button1 is clicked. To do this, use addActionListener to connect button1 with an object that implements the ActionListener interface. The only method in this interface has this signature:
void actionPerformed( ActionEvent e );
Which of the following anonymous class declarations is the correct way to do this?