public final class StringUtil
extends Object
Utility class for string operations.
Constructor Summary
Constructors
Method Summary
All Methods Static Methods Concrete Methods
static boolean
Checks if a
String starts with another
String ignoring case sensitivity.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
StringUtil
public StringUtil ()
Method Details
startsWithIgnoreCase
public static boolean startsWithIgnoreCase (String str,
String prefix)
Checks if a
String starts with another
String ignoring case sensitivity.
Parameters:
str - the input String to check
prefix - the prefix to check against
Returns:
true if the input String starts with the specified prefix, ignoring case sensitivity,
or false otherwise. Returns false if either the input String or the prefix is null.