static int[] numbers = {1, 2, 0, 5, 10};
public static void main(String[] args) {
int number = 0;
List<int[]> list = Arrays.asList(numbers);
boolean b = list.contains(number);
System.out.println(b); // => false
System.out.println("list: " + list);
for(int[] next : list) {
System.out.println("content: " + Arrays.toString(next));
}
static int[] numbers = {1, 2, 0, 5, 10};
public static void main(String[] args) {
int number = 0;
List<int[]> list = Arrays.asList(numbers);
boolean b = list.contains(number);
System.out.println(b); // => false
System.out.println("list: " + list);
for(int[] next : list) {
System.out.println("content: " + Arrays.toString(next));
}
}