Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static boolean isBlueToothName(String name) { if (!TextUtils.isEmpty(name) && name.startsWith("JY")) { return true; } return false; } }