13 lines
299 B
Kotlin
Vendored
13 lines
299 B
Kotlin
Vendored
import java.io.*
|
|
|
|
public class C {
|
|
throws(IOException::class)
|
|
fun foo() {
|
|
ByteArrayInputStream(ByteArray(10)).use { input ->
|
|
ByteArrayOutputStream().use { output ->
|
|
output.write(input.read())
|
|
output.write(0)
|
|
}
|
|
}
|
|
}
|
|
} |