Java tutorial
//package com.java2s; public class Main { /** * @param bssid the device's bssid * @return whether the device's bssid is belong to softap state */ public static boolean isSoftapDevice(String bssid) { return bssid.subSequence(0, 2).equals("1a"); } }