day26-1boolean isEmpty(): 判断字符串是不是空串,如果是空的就返回true

public static void main(String[] args){
fu();
}
public static void fu(){
String a="";
System.out.print("原函数"+a+" ");
boolean a1=a.isEmpty();
System.out.println("修改后"+a1);
}

原文地址:https://www.cnblogs.com/hfew/p/10561284.html