?? dictionary.java
字號(hào):
package com.aztsoft.games.dict;
import java.util.Random;
/**
* class Dictonary is a facade for the genereated Dict_ classes
* It can return a random dictionary entry
*/
public class Dictionary {
private static Random random = new Random();
public static int MAX_SIZE = Dict_A.targetKeywordsTotalLength + Dict_B.targetKeywordsTotalLength + Dict_C.targetKeywordsTotalLength;
public static synchronized int getRandomIndex() {
return (int) (Math.abs(random.nextInt() % MAX_SIZE));
}
public static String getTargetKeyword(int index) {
String keyword = "keyword";
keyword = Dict_A.getTargetKeyword(index);
return keyword;
}
public static synchronized String getTargetKeywordToUpper(int index) {
String keyword = getTargetKeyword(index);
keyword = keyword.toUpperCase();
return keyword;
}
public static synchronized int[] getTargetLanguageUpperCharSet() {
int arr[];
int size = 26;
int offset = 65;
arr = new int[size];
for (int i = 0; i < arr.length; i++) {
arr[i] = offset + i;
}
return arr;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -