Java tutorial
//package com.java2s; public class Main { public static long ConvertMacToLong(String mac) { mac = mac.replace(":", ""); long id = Long.parseLong(mac, 16); return id; } }