0
我正在使用扫描仪对象来分析一个大的.txt文件,但是所有的引号和撇号正在打印out“为”,“和”,“。是否有打印实际的”“”和“'”?从文本文件中打印输入:“,”和“,”打印代替“和”分别
这是我的扫描方法:
Scanner in = new Scanner(new File("oldmanandthesea.txt"));
//the first line of the file is: “No,” the old man said.
System.out.println(in.nextLine); // prints: “No,” the old man said.
你可以发布你的扫描方法代码吗?\ –
我刚刚发布了代码。 – nleazer