為什麼總經理跟秘書會常常不見 原來是這樣
How do I compare strings in Java? - Stack Overflow這設計真是太精巧了....!!!!! ==tests object references, .equals() tests the string values. Sometimes it looks as if == compares values, because Java does some behind-the-scenes stuff to make sure identical in-line strings are actually the same object. For example: String fooString1 =...
全文閱讀