摘要:
CREATE DATABASE `shop` CHARACTER SET utf8 COLLATE utf8_general_ciCREATE TABLE `account`( `id` INT(3) NOT NULL AUTO_INCREMENT, `name` VARCHAR(10) NOT N 阅读全文
摘要:
//自定义异常类public class MyException extends Exception{ //传递数字》10 private int detail; public MyException(int a) { this.detail = a; } @Override public St 阅读全文
摘要:
public class Demo01 { public static void main(String[] args) { int a =1; int b =0; //ctrl+alt+T //假设要捕获多个异常:从小到大 try {//监控区域 new Demo01().a(); } catch 阅读全文
摘要:
public class Outer { private int id =10; public void out(){ System.out.println("这是外部类的方法"); } public class Inner{ public void in() { System.out.printl 阅读全文