how to check the given 2 strings lexicographically compare code example Example: lexicographically greater string java s1.compareTo(s4)