import java.util.Arrays;
import java.util.List;
class Teste {
public static void main
(String[] args
) { List
<Integer
> lista
= Arrays.
asList(1,
2,
3,
4,
6); System.
out.
println(lista.
contains(5)); // false System.
out.
println(lista.
contains(4)); // true }
}
aW1wb3J0IGphdmEudXRpbC5BcnJheXM7CmltcG9ydCBqYXZhLnV0aWwuTGlzdDsKCmNsYXNzIFRlc3RlIHsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBMaXN0PEludGVnZXI+IGxpc3RhID0gQXJyYXlzLmFzTGlzdCgxLCAyLCAzLCA0LCA2KTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4obGlzdGEuY29udGFpbnMoNSkpOyAvLyBmYWxzZQogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihsaXN0YS5jb250YWlucyg0KSk7IC8vIHRydWUKICAgIH0KfQ==