Я ожидал, что этот код отобразит true :
true
int[] array = {1, 2}; System.out.println(Arrays.asList(array).contains(1));