相同:二者都进行了是否为空的判断
不同:isEmpty()把空格也作为参数,而isBlank()对空格进行了判断,不作为参数
如图所示
System.out.println("".isEmpty()); // true
System.out.println(" ".isEmpty()); // false
System.out.println("".isBlank()); // true
System.out.println(" ".isBlank()); // true