「Java入門」Stringクラスで文字列がnullまたは空文字列を判定する
サンプルコード
public static boolean isStrEmpty(String str){
if(str == null || str.length()==0){
return true;
}
return false;
}
Coding Changes the World
サンプルコード
public static boolean isStrEmpty(String str){
if(str == null || str.length()==0){
return true;
}
return false;
}