how to check if a value is in a arraylist in java code example
Example: java check if key exists in list
if (lista.contains(conta1)) {
System.out.println("Account found");
} else {
System.out.println("Account not found");
}
if (lista.contains(conta1)) {
System.out.println("Account found");
} else {
System.out.println("Account not found");
}