作業一答案(2)
package icsc.examples.exercise ;
public class LostMoneyException extends Exception {
public LostMoneyException(String msg) {
super(msg);
}
public LostMoneyException() {
super();
}
}
// throw new LostMoneyException("錢掉了");

0 Comments:
Post a Comment
<< Home