implement
使用匿名类的时候 可以集成接口吗?TextField tv2 = new TextField(10);
tv2.addActionListener(new Policeman implements ActionListener()
{
public void actionPerformed( ActionEvent e )
{
String number = e.getActionCommand();
int n = Integer.parseInt(number);
int m = n*n*n;
System.out.println("lifangshi"+m);
}
});