Here you can find the source of dumpBytesAsInt(byte[] b)
public static void dumpBytesAsInt(byte[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static void dumpBytesAsInt(byte[] b) { int length = b.length; String comma = ""; for (int i = 0; i < length; i++) { System.out.print(comma + (short) b[i]); comma = ","; }//from w ww . j a v a 2 s . c o m System.out.println(); } }