Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Created August 12, 2015 15:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jmaciasluque/390f087124aba0ff7810 to your computer and use it in GitHub Desktop.
private void exercise4() throws IOException {
try (BufferedReader reader = Files.newBufferedReader(
Paths.get("SonnetI.txt"), StandardCharsets.UTF_8)) {
System.out.println(reader.lines().count());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment