how to get a strings lexicographic value as an int in java code example Example: lexicographically greater string java s1.compareTo(s4)