package test8;
interface fire{
public void Fireup(); //{
//System.out.println("点燃火柴");
//}
}
public class Match {
public int count = 0;
fire a = new fire() {
@Override
public void Fireup(int count) {
if(count == 0)
{
System.out.println("fire up the match");
}
else return;
// TODO 自动生成的方法存根
}
};
}