Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static boolean isEmpty(String line) { return TextUtils.isEmpty(line) || line.equals("\n") || line.equals("\t") || TextUtils.isEmpty(line.trim()); } }