import java.util.Arrays;
import java.util.stream.IntStream;
class Teste {
public static void main
(String[] args
) { int[] numeros = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
int[] quadrados = IntStream.of(numeros).map(x -> x * x).toArray();
}
}
aW1wb3J0IGphdmEudXRpbC5BcnJheXM7CmltcG9ydCBqYXZhLnV0aWwuc3RyZWFtLkludFN0cmVhbTsKCmNsYXNzIFRlc3RlIHsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBpbnRbXSBudW1lcm9zID0gezEsIDIsIDMsIDQsIDUsIDYsIDcsIDgsIDksIDEwLCAxMSwgMTIsIDEzLCAxNCwgMTUsIDE2LCAxNywgMTgsIDE5LCAyMH07CiAgICAgICAgaW50W10gcXVhZHJhZG9zID0gSW50U3RyZWFtLm9mKG51bWVyb3MpLm1hcCh4IC0+IHggKiB4KS50b0FycmF5KCk7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKEFycmF5cy50b1N0cmluZyhxdWFkcmFkb3MpKTsKICAgIH0KfQ==
[1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324, 361, 400]