mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
[java/en] typo (#2763)
This commit is contained in:
parent
34b6b504fa
commit
fc58f4d120
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user