📜  Java 等于字符串 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:44.043000             🧑  作者: Mango

代码示例1
String word = "Hello"; // Declare String.
word.equalsIgnoreCase("hELlO"); // Returns true.
word.equals("Hello"); // Returns true.
word.equals("heLLo"); // Returns false.