?? connectserver.java
字號:
public class ConnectServer
{
public static void connectServer( int port ) throws UserDefinedException
{
if ( ( port < 80 ) || ( port > 1000 ) )
throw new UserDefinedException( port );
}
public static void main(String[] args)
{
int port = 1001;
try {
connectServer( 1001 );
}
catch ( UserDefinedException e )
{
System.out.println( e.toString() );
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -