blob: a68c13fe32f50e2b3742c57be50e5869500d3037 [file] [log] [blame]
//file
import java.io.*;
public class C {
void foo() throws IOException {
try(InputStream stream = new ByteArrayInputStream(new byte[10])) {
// reading something
int c = stream.read();
System.out.println(c);
}
finally {
// dispose something else
}
}
}