f79b282c60
#KT-32702 fixed #KT-19327 fixed
10 lines
279 B
Java
Vendored
10 lines
279 B
Java
Vendored
// RUNTIME_WITH_FULL_JDK
|
|
|
|
import java.util.Collection;
|
|
import java.util.stream.Collectors;
|
|
|
|
class JavaCode {
|
|
public String toJSON(Collection<Integer> collection) {
|
|
return "[" + collection.stream().map(Object::toString).collect(Collectors.joining(", ")) + "]";
|
|
}
|
|
} |