Here you can find the source of printbyte(byte[] b)
Parameter | Description |
---|---|
b | the array to print |
public static void printbyte(byte[] b)
//package com.java2s; public class Main { /**/*from w w w. j a v a 2s.c o m*/ * Prints a byte array to the console * @param b the array to print */ public static void printbyte(byte[] b) { System.out.print("["); for (int i = 0; i < b.length - 1; i++) { System.out.print(b[i] + ":"); } System.out.println(b[b.length - 1] + "]"); } }