Here you can find the source of isBlank(String s)
public static boolean isBlank(String s)
//package com.java2s; import java.util.regex.Pattern; public class Main { public static boolean isBlank(String s) { if (s == null) { return true; }//from w w w. j ava 2 s . c o m return Pattern.matches("\\s*", s); } }