Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * parse bssid
     * 
     * @param bssid the bssid
     * @return byte converted from bssid
     */
    public static byte[] parseBssid2bytes(String bssid) {
        String bssidSplits[] = bssid.split(":");
        byte[] result = new byte[bssidSplits.length];
        for (int i = 0; i < bssidSplits.length; i++) {
            result[i] = (byte) Integer.parseInt(bssidSplits[i], 16);
        }
        return result;
    }
}