how to check if both strings have same letter in java code example Example: how to know if String is the same java String1.equals(String2)