Java tutorial
//package com.java2s; //License from project: LGPL public class Main { public static String MACBytesToString(byte[] mac) { if (mac == null) return null; StringBuilder sb = new StringBuilder(18); for (byte b : mac) { if (sb.length() > 0) sb.append(':'); sb.append(String.format("%02x", b)); } return sb.toString(); } }