MCPcopy Index your code
hub / github.com/careercup/ctci / printByte

Method printByte

java/Chapter 5/Question5_8/Question.java:47–51  ·  view source on GitHub ↗
(byte b)

Source from the content-addressed store, hash-verified

45 }
46
47 public static void printByte(byte b) {
48 for (int i = 7; i >= 0; i--) {
49 System.out.print((b >> i) & 1);
50 }
51 }
52
53 public static void printScreen(byte[] screen, int width) {
54 int height = screen.length * 8 / width;

Callers 1

printScreenMethod · 0.95

Calls 1

printMethod · 0.45

Tested by

no test coverage detected