blob: d5dd406a0323b30af5a01b68a6645feb9feabfcc [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);
}
finally {
System.out.println("Finally!");
}
}
}