Files
kotlin-fork/j2k/testData/fileOrElement/tryWithResource/MultipleResources.java
T
Alexander Udalov 3c859caf2b j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
2015-01-03 00:52:59 +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);
}
}
}