Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static boolean isEmpty(final String... names) { if (names == null) { return true; } for (String name : names) { if (TextUtils.isEmpty(name)) { return true; } } return false; } }