isNull、isEmpty、lenth = 0的區別

  1. isNull函數

    Null 值:變量不存在,不包含有效數據,未定義,爲分配內存
    spa

  2. isEmptyorm

    是一個判斷函數,返回false或者true。內存

     public boolean isEmpty() { 
    return size == 0; 
        }it

  3. 「」變量

    已初始化,已分類內存,是空串。數據

    它的size = 0;co

相關文章
相關標籤/搜索