50,528
社区成员
发帖
与我相关
我的任务
分享
class EmptyStackException extends Exception {
public EmptyStackException(String message) {
super(message);
}
}
class FullStackException extends Exception {
public FullStackException(String message) {
super(message);
}
}
public class UserdefinedException {
public static void main(String[] args) throws Exception{
throw new EmptyStackException("堆栈空。");
}
}