1.空串””是长度为0的字符串
If(str.length()==0) 或if(str.equals(""))
2.判断一个字符串既不是null也不为空串
If(str!=null&&str.length()!=0)