Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { /** * Checks whether or not a phone number is a private caller or not. */ public static boolean isPrivateCaller(CharSequence charsequence) { return TextUtils.isEmpty(charsequence) || '-' == charsequence.charAt(0); } }