how to find wheather a element of a string array is present in a particular sting or not code example
Example: java check if element exists in array
// Convert to stream and test it
boolean result = Arrays.stream(alphabet).anyMatch("A"::equals);
if (result) {
System.out.println("Hello A");
}
Copy