import java.util.Arrays;
class Array<E> {
private E[] data;
private int size;
public Array(int size, E
[] data
) {
this.size=size;
this.
data = Arrays.
copyOf(data, size
); }
{
for(int i=0; i<size; i++) s+=data[i]+" ";
return s;
}
}
public class Main {
public static void main
(String[] args
) { // TODO Auto-generated method stub
Array<Integer> niza=new Array<Integer>(4, A);
System.
out.
println(niza.
toString()); }
}
aW1wb3J0IGphdmEudXRpbC5BcnJheXM7CgpjbGFzcyBBcnJheTxFPiB7CgogICAgcHJpdmF0ZSBFW10gZGF0YTsKICAgIHByaXZhdGUgaW50IHNpemU7CgogICAgcHVibGljIEFycmF5KGludCBzaXplLCBFW10gZGF0YSkKICAgIHsKICAgICAgICB0aGlzLnNpemU9c2l6ZTsKICAgICAgICB0aGlzLmRhdGEgPSBBcnJheXMuY29weU9mKGRhdGEsIHNpemUpOwogICAgfQoKICAgIHB1YmxpYyBTdHJpbmcgdG9TdHJpbmcoKQogICAgewogICAgICAgIFN0cmluZyBzPW5ldyBTdHJpbmcoKTsKICAgICAgICBmb3IoaW50IGk9MDsgaTxzaXplOyBpKyspIHMrPWRhdGFbaV0rIiAiOwogICAgICAgIHJldHVybiBzOwogICAgfQp9CgpwdWJsaWMgY2xhc3MgTWFpbiB7CgogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIC8vIFRPRE8gQXV0by1nZW5lcmF0ZWQgbWV0aG9kIHN0dWIKICAgICAgICBJbnRlZ2VyIEFbXT0gezEsIDMsIDUsIDd9OwogICAgICAgIEFycmF5PEludGVnZXI+IG5pemE9bmV3IEFycmF5PEludGVnZXI+KDQsIEEpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihuaXphLnRvU3RyaW5nKCkpOwogICAgfQoKfQ==