在Java中,如果要比較兩個物件的實質相等性,並不是使用==,而是必須透過equals()方法, ... String s1 = new String("Java"); ... if(that instanceof Point) {
確定! 回上一頁