1). The actual problem: Your class App2 implements ActionListener but does not define the method "actionPerformed" which takes an ActionEvent as a parameter. There are two ways to solve this: - a). Make your class App2 abstract. - b). define the method in the class.
2). It also means that your console display is not wide enough to show the entire column width that the console is printing (or your cut-and-paste didn't capture it all), as there is some missing text ("hod actionPe", to be specific). If you didn't understand the error message, that's why.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.