> 原文:[https://www . geesforgeks . org/boolean-compare-method-in-Java-with-examples/](https://www.geeksforgeeks.org/boolean-compare-method-in-java-with-examples ...
Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using ==. This is emphasized and reinforced to new developers repeatedly ...