if an element in a string array is empty c# code example
Example 1: if list item in string python
if any(ext in url_string for ext in extensionsToCheck):
print(url_string)
Example 2: 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