?? userexception.java
字號(hào):
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package exception;import java.io.*;/** * 這個(gè)方法處理用戶異常 * @author zouhao */public class UserException extends Exception{ public UserException(String e) { if(e.equals("not exists")) { System.out.println("The user you inputed is not exists!"); } if(e.equals("is exists")) { System.out.println("The user you inputed is already exists!"); } if(e.equals("wrong password")) { System.out.println("The user and pssword you inputed are not conform!"); } if(e.equals("short password")) { System.out.println("The pssword you inputed is too short!"); } }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -