import java.awt.event.*;
import javax.swing.*;
class Talkingclock{
public void start (int interval, final boolean beep){
A.ctionListener listener=new
A.ctionListener(){
public void actionPerformed (ActionEvent event) {
......
}
}
Timer t=new Timer(interval, listener);
t. start();
]
A.) Timer
B.) ActionListener
C.) listener
D.) 匿名
A.
B.
C.
D.