Java tutorial
//package com.java2s; public class Main { private static boolean isBlank(String str) { if (str == null || str.matches("[ ]{0,}")) { return true; } return false; } }