1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-16 11:45:04 +02:00

[java/en] typo (#2763)

This commit is contained in:
Mathieu Gemard
2017-06-18 14:26:36 +02:00
committed by ven
parent 34b6b504fa
commit fc58f4d120

View File

@@ -454,7 +454,7 @@ public class LearnJava {
// simplifies try-catch-finally statements by closing resources
// automatically.
// In order to use a try-with-resources, include a an instance of a class
// In order to use a try-with-resources, include an instance of a class
// in the try statement. The class must implement java.lang.AutoCloseable.
try(BufferedReader br = new BufferedReader(new FileReader("foo.txt"))) {
// You can attempt to do something that could throw an exception.