Java tutorial
//package com.java2s; //License from project: LGPL public class Main { public static String bytesToAddress(byte[] bytes) { StringBuilder sb = new StringBuilder(); for (byte b : bytes) { sb.append(String.format("%02X:", b)); } sb.deleteCharAt(sb.length() - 1); // remove last semicolon return sb.toString(); } }