namen richtig

This commit is contained in:
Johannes Theiner 2018-06-17 20:46:07 +02:00
parent c0aa739bc2
commit 9e4de004e6

View File

@ -136,11 +136,11 @@ public class KlausurenServer {
}
synchronized void save() {
FileOutputStream fileWriter;
FileOutputStream fileOutputStream;
PrintWriter printWriter = null;
try {
fileWriter = new FileOutputStream(getClass().getClassLoader().getResource("praktikum4/data.txt").getFile());
printWriter = new PrintWriter(fileWriter);
fileOutputStream = new FileOutputStream(getClass().getClassLoader().getResource("praktikum4/data.txt").getFile());
printWriter = new PrintWriter(fileOutputStream);
for (Map.Entry<String, TreeSet<Integer>> entry : data.entrySet()) {
StringBuilder tmp = new StringBuilder(entry.getKey());