我知道这一定很明显,但找不到答案。
我应该怎么做才能获得正确的字符,例如“,'等......?
这是我正在使用的方法,
public void read(Context context) {
InputStream inputStream = context.getResources().openRawResource(
R.raw.puzzles);
Scanner scanner = new Scanner(inputStream);
scanner.useDelimiter(PATTERN);
for (int i = 0; i < 70; i++) {
ids[i] = scanner.next();
titles[i] = scanner.next();
questions[i] = scanner.next();
answers[i] = scanner.next();
}
}
谢谢