在Java 中字串的空有兩種. 字串物件本身為空; 字串的內容為空. String str1 = null; String str2 = "";. 既然如此,也就需要兩種判斷方式. 判斷null 較為單純
確定! 回上一頁