Question fetched from API endpoint api/expression/11/3
{
"result": [
{
"message": "com.example.mistakes.expression._11_IgnoredReturnValue.Ex3",
"before": " void before(List<String> list) {\n list.forEach(String::trim);\n }\n",
"after": " void after(List<String> list) {\n list.replaceAll(String::trim);\n }\n",
"chapter": 2,
"id": "2_11_3",
"className": "Ex3",
"path": "file:///home/runner/work/100_java_mistakes/100_java_mistakes/back/src/main/java/com/example/mistakes/expression/_11_IgnoredReturnValue.java"
}
],
"length": 1
}
void before(List<String> list) {
list.forEach(String::trim);
}
void after(List<String> list) {
list.replaceAll(String::trim);
}