String類中進行比較有equals(),contentEquals()。 equals的源碼 public boolean equals(Object anObject) { if (this == anObj