add solutions for hw6:Base
This commit is contained in:
@@ -17,7 +17,6 @@ public class Wspp {
|
||||
try {
|
||||
WordScanner scanner = new WordScanner(inputFile);
|
||||
|
||||
// LinkedHashMap сохраняет порядок вставки
|
||||
Map<String, WordInfo> wordMap = new LinkedHashMap<>();
|
||||
int wordPosition = 1;
|
||||
|
||||
@@ -41,7 +40,6 @@ public class Wspp {
|
||||
|
||||
scanner.close();
|
||||
|
||||
// Запись результата
|
||||
PrintWriter writer = new PrintWriter(
|
||||
new OutputStreamWriter(
|
||||
new FileOutputStream(outputFile), StandardCharsets.UTF_8));
|
||||
@@ -63,9 +61,4 @@ public class Wspp {
|
||||
System.err.println("Error: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
static class WordInfo {
|
||||
int count;
|
||||
IntList positions;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user