米字键

博客园 首页 新随笔 联系 订阅 管理

 

  /*

    boolean isEmpty():

    判断字符串是不是空串,

    如果是空的就返回true

  */

    public class Str {
    
            public static void main(String[] args) {

 


//                  定义空字符串
                String s="";

 


//                判断是否为空
                boolean e=s.isEmpty();

 


//        打印
            System.out.println(e);
    }

}

posted on 2019-03-19 21:36  米字键  阅读(837)  评论(0编辑  收藏  举报