?? view.java
字號:
/* * View.java * * Created on 2003年11月6日, 上午9:38 */package romulus;/** * * @author Romulus * @version 1.0 */public class View { /** The String ident of the views.*/ private static String Str_View[] = {"Unknown", "Teacher", "Master", "Student"}; /** Get the string ident use int.*/ public static String getView(int ident){ //1 is Teacher //2 is Master //3 is Student //0 and others are Unknown if(ident < 0 || ident >3){ return Str_View[0]; } else{ return Str_View[ident]; } } /** Get the int ident use string.*/ public static int getView(String ident){ if(ident.equals(Str_View[1])){ return 1; } else if(ident.equals(Str_View[2])){ return 2; } else if(ident.equals(Str_View[3])){ return 3; } else{ return 0; } } /** Creates new View */ private View() { }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -