Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ec80c21fd118667fdb2e851da7eea5d76d95eb52
/
.
/
nj2k
/
testData
/
newJ2k
/
tryWithResource
/
WithCatch.java
blob: 71efac0f24a8845ff3b1753f77ccef72ecc932ca [
file
] [
log
] [
blame
]
//file
import
java
.
io
.*;
public
class
C
{
void
foo
()
{
try
(
InputStream
stream
=
new
ByteArrayInputStream
(
new
byte
[
10
]))
{
// reading something
int
c
=
stream
.
read
();
System
.
out
.
println
(
c
);
}
catch
(
IOException
e
)
{
System
.
out
.
println
(
e
);
}
}
}