import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
interface Callback<T> {
void call(T t);
}
class ConcreteCallback implements Callback<Collection<Object>> {
public void call(final Collection<Object> data) {
}
}
}
public class Main {
private static <T, U extends T> void call(final List<U> data, final Callback<? super List<T>> cb) {
ArrayList<T> dat = new ArrayList<>();
for (T object: data) {
dat.add(object);
}
cb.call(dat);
}
public static void main
(final String[] args
) { call
(Arrays.
asList(args
),
new ConcreteCallback
()); }
}
aW1wb3J0IGphdmEudXRpbC5BcnJheUxpc3Q7CmltcG9ydCBqYXZhLnV0aWwuQXJyYXlzOwppbXBvcnQgamF2YS51dGlsLkNvbGxlY3Rpb247CmltcG9ydCBqYXZhLnV0aWwuTGlzdDsKCmludGVyZmFjZSBDYWxsYmFjazxUPiB7CiAgICB2b2lkIGNhbGwoVCB0KTsKfQoKY2xhc3MgQ29uY3JldGVDYWxsYmFjayBpbXBsZW1lbnRzIENhbGxiYWNrPENvbGxlY3Rpb248T2JqZWN0Pj4gewogICAgcHVibGljIHZvaWQgY2FsbChmaW5hbCBDb2xsZWN0aW9uPE9iamVjdD4gZGF0YSkgewogICAgICAgIGZvciAoT2JqZWN0IG9iajogZGF0YSkgewogICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4ob2JqKTsKICAgICAgICB9CiAgICB9Cn0KCnB1YmxpYyBjbGFzcyBNYWluIHsKICAgIHByaXZhdGUgc3RhdGljIDxULCBVIGV4dGVuZHMgVD4gdm9pZCBjYWxsKGZpbmFsIExpc3Q8VT4gZGF0YSwgZmluYWwgQ2FsbGJhY2s8PyBzdXBlciBMaXN0PFQ+PiBjYikgewogICAgICAgIEFycmF5TGlzdDxUPiBkYXQgPSBuZXcgQXJyYXlMaXN0PD4oKTsKICAgICAgICBmb3IgKFQgb2JqZWN0OiBkYXRhKSB7CiAgICAgICAgICAgIGRhdC5hZGQob2JqZWN0KTsKICAgICAgICB9CiAgICAgICAgY2IuY2FsbChkYXQpOwogICAgfQoKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKGZpbmFsIFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBjYWxsKEFycmF5cy5hc0xpc3QoYXJncyksIG5ldyBDb25jcmV0ZUNhbGxiYWNrKCkpOyAKICAgIH0KfQ==