Clean up formatting & Update NIO in some remaining files

This commit is contained in:
Đạt Nhân Trương
2022-08-01 14:25:32 +07:00
parent a44744c05b
commit 4496e0854f
29 changed files with 603 additions and 613 deletions

View File

@@ -240,28 +240,28 @@ public class QuestItemCountFetcher {
}
}
private static void reportQuestItemCountData() {
// This will reference one line at a time
private static void reportQuestItemCountData() {
// This will reference one line at a time
try(PrintWriter pw = new PrintWriter(Files.newOutputStream(OUTPUT_FILE))) {
System.out.println("Reading WZs...");
readQuestItemCountData();
try (PrintWriter pw = new PrintWriter(Files.newOutputStream(OUTPUT_FILE))) {
System.out.println("Reading WZs...");
readQuestItemCountData();
System.out.println("Reporting results...");
printWriter = pw;
System.out.println("Reporting results...");
printWriter = pw;
printReportFileHeader();
printReportFileResults();
printReportFileHeader();
printReportFileResults();
System.out.println("Done!");
} catch (FileNotFoundException ex) {
System.out.println("Unable to open quest file.");
} catch (IOException ex) {
System.out.println("Error reading quest file.");
} catch (Exception e) {
e.printStackTrace();
}
}
System.out.println("Done!");
} catch (FileNotFoundException ex) {
System.out.println("Unable to open quest file.");
} catch (IOException ex) {
System.out.println("Error reading quest file.");
} catch (Exception e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
reportQuestItemCountData();