摘要:
throws与throw throws是方法可能抛出异常的声明。(用在声明方法时,表示该方法可能要抛出异常)语法:[(修饰符)](返回值类型)(方法名)([参数列表])[throws(异常类)]{......} public void doA(int a) throws Exception1,Exc 阅读全文
摘要:
import java.util.Scanner; public class zixi001 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int 阅读全文