package step4;
import java.util.Scanner;
public class Task {
public static void main(String[] args)throws MyException {
Scanner sc = new Scanner(System.in);
String username = sc.next();
if(username.length()>=3){
System.out.println("用户名格式正确");//判断用户名
}
else{
throw new MyException("用户名小于三位Exception");
}
}
}
class MyException extends Exception{
public MyException(){
}
public MyException(String msg){
super(msg);
}
}