摘要:
编写2个接口:InterfaceA和InterfaceB;在接口InterfaceA中有个方法voidprintCapitalLetter();在接口InterfaceB中有个方法void printLowercaseLetter();然 后写一个类Print实现接口InterfaceA和Inter 阅读全文
posted @ 2016-09-24 11:00
熊猫卡洛斯
阅读(615)
评论(0)
推荐(0)
摘要:
1.建立exception包,编写TestException.java程序,主方法中有以下代码,确定其中可能出现的异常,进行捕获处理。 结果: 2.建立exception包,建立Bank类,类中有变量double balance表示存款,Bank类的构造方法能增加存款,Bank类中有取款的发方法wi 阅读全文
posted @ 2016-09-24 10:53
熊猫卡洛斯
阅读(1709)
评论(0)
推荐(0)