摘要:
1.建立exception包,编写TestException.java程序,主方法中有以下代码,确定其中可能出现的异常,进行捕获处理。 for(inti=0;i<4;i++){ int k; switch(i){ case 0: int zero=0; k=911/zero; break; case 阅读全文
摘要:
34.编写2个接口:InterfaceA和InterfaceB;在接口InterfaceA中有个方法void printCapitalLetter();在接口InterfaceB中有个方法void printLowercaseLetter();然 后写一个类Print实现接口InterfaceA和I 阅读全文