public static boolean osSensitiveEquals ( String s1 , String s2 ) { if ( OS_CASE_SENSITIVE ) { return s1 . equals ( s2 ) ; } else { return s1 . equalsIgnoreCase ( s2 ) ; } }
Compare two strings with case sensitivity determined by the operating system .