Question fetched from API endpoint api/expression/11/7
{
"result": [
{
"message": "com.example.mistakes.expression._11_IgnoredReturnValue.Ex7",
"before": " byte[] before(InputStream is) throws IOException {\n byte[] arr = new byte[100];\n is.read(arr);\n return arr;\n }\n",
"after": " byte[] after(InputStream is) {\n byte[] arr = new byte[100];\n try {\n arr = is.readNBytes(100);\n } catch (IOException _) {\n",
"chapter": 2,
"id": "2_11_7",
"className": "Ex7",
"path": "file:///home/runner/work/100_java_mistakes/100_java_mistakes/back/src/main/java/com/example/mistakes/expression/_11_IgnoredReturnValue.java"
}
],
"length": 1
}
byte[] before(InputStream is) throws IOException {
byte[] arr = new byte[100];
is.read(arr);
return arr;
}
byte[] after(InputStream is) {
byte[] arr = new byte[100];
try {
arr = is.readNBytes(100);
} catch (IOException _) {