Skip to content

Commit

Permalink
v3
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrHic committed Dec 23, 2024
1 parent 633d6ff commit 164b5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/core/basesyntax/FileWork.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class FileWork {

public String[] readFromFile(String fileName) {
String[] finalWords;
try (BufferedReader bufferedReader = new BufferedReader(new FileReader (fileName))) {
try (BufferedReader bufferedReader = new BufferedReader(new FileReader(fileName))) {
String result = bufferedReader.readLine();
System.out.println(result);
String[] words = result.split("\\W+");
Expand Down

0 comments on commit 164b5ff

Please sign in to comment.