/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
List<String> list = new ArrayList<String>();
list.add("video_codigo_1");
list.add("video_codigo_2");
list.add("video_codigo_3");
list.add("video_codigo_4");
StringBuilder strB = new StringBuilder();
for(int i =0; i < list.size(); i++){
if(i<(list.size()-1))
strB.append(list.get(i)).append(",");
else strB.append(list.get(i));
}
String url
= "https://w...content-available-to-author-only...s.com/youtube/v3/videos?part=snippet,statistics&id="+strB.
toString()+"&key={API_KEY}"; }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUxpc3Q8U3RyaW5nPiBsaXN0ID0gbmV3IEFycmF5TGlzdDxTdHJpbmc+KCk7CgkgICAgbGlzdC5hZGQoInZpZGVvX2NvZGlnb18xIik7CgkgICAgbGlzdC5hZGQoInZpZGVvX2NvZGlnb18yIik7CgkgICAgbGlzdC5hZGQoInZpZGVvX2NvZGlnb18zIik7CgkgICAgbGlzdC5hZGQoInZpZGVvX2NvZGlnb180Iik7CgkgICAgCgkgICAgU3RyaW5nQnVpbGRlciBzdHJCID0gbmV3IFN0cmluZ0J1aWxkZXIoKTsKCSAgICBmb3IoaW50IGkgPTA7IGkgPCBsaXN0LnNpemUoKTsgaSsrKXsKCSAgICAJCgkgICAgCWlmKGk8KGxpc3Quc2l6ZSgpLTEpK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