Java prüft, ob Element in Array vorhanden ist
// Convert to stream and test it
boolean result = Arrays.stream(alphabet).anyMatch("A"::equals);
if (result) {
System.out.println("Hello A");
}
Copy
2 Programmers 1 Bug