Here you can find the source of intArrayToAddressString(int vals[])
public static String intArrayToAddressString(int vals[])
//package com.java2s; //License from project: Apache License public class Main { public static String intArrayToAddressString(int vals[]) { StringBuilder buf = new StringBuilder(); for (int i = 0; i < vals.length; ++i) { buf.append(String.format("%02x", vals[i])); }/*from ww w . ja v a 2 s . com*/ return buf.toString(); } }