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