[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 // simplifies try-catch-finally statements by closing resources
// automatically. // 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. // in the try statement. The class must implement java.lang.AutoCloseable.
try(BufferedReader br = new BufferedReader(new FileReader("foo.txt"))) { try(BufferedReader br = new BufferedReader(new FileReader("foo.txt"))) {
// You can attempt to do something that could throw an exception. // You can attempt to do something that could throw an exception.