/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.stream.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int[] a = {1,2,3,4};
boolean contains = IntStream.of(a).anyMatch(x -> x == 5);
if(contains){
System.
out.
println("Contem o numero 5"); }else {
System.
out.
println("Nao contem o numero 5"); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuc3RyZWFtLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWludFtdIGEgPSB7MSwyLDMsNH07CgkJYm9vbGVhbiBjb250YWlucyA9IEludFN0cmVhbS5vZihhKS5hbnlNYXRjaCh4IC0+IHggPT0gNSk7CgkJaWYoY29udGFpbnMpewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIkNvbnRlbSBvIG51bWVybyA1Iik7CgkJfWVsc2UgewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIk5hbyBjb250ZW0gbyBudW1lcm8gNSIpOwoJCX0KCX0KfQ==