Skip to content

Instantly share code, notes, and snippets.

@Fuji1405116
Fuji1405116 / SimpleByteArrayPrinter.java
Created November 2, 2022 06:50
printing a Byte Array beautifully in Binary form
package media.Utils;
public class SimpleByteArrayPrinter {
/**
* print a byte array in binary form from offset index to offset+length index
* @param bytes byte array to be printed
* @param offset starting index of the byte array
* @param length length of the byte array you wanna print from starting index
* @param bytesInSingleLine how many binary formed bytes I want in single line