Files
kotlin-fork/nj2k/testData/newJ2k/tryWithResource/MultipleResources.java
T
2019-04-03 11:24:19 +03:00

13 lines
312 B
Java
Vendored

//file
import java.io.*;
public class C {
void foo() throws IOException {
try(ByteArrayInputStream input = new ByteArrayInputStream(new byte[10]);
OutputStream output = new ByteArrayOutputStream()) {
output.write(input.read());
output.write(0);
}
}
}