?? moviegenre.java
字號(hào):
/* MovieGenre - very simple helper class * Copyright 2001, Bruce E. Wampler */public class MovieGenre{ private static String[] values = { "Drama", "Comedy", "Children", "Family", "Action", "Sci-Fi", "Documentary", "Other" }; public static int indexOf(String str) { for (int ix = 0 ; ix < values.length ; ++ix) if (values[ix].equals(str)) return ix; return 0; } public static String stringAt(int at) { if (at < 0 || at >= values.length) return "Other"; return values[at]; } public static String[] getNames() { return values; }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -