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

Method PrintScreen

java/Chapter 9/Question9_7/Question.java:25–32  ·  view source on GitHub ↗
(Color[][] screen)

Source from the content-addressed store, hash-verified

23 }
24
25 public static void PrintScreen(Color[][] screen) {
26 for (int i = 0; i < screen.length; i++) {
27 for (int j = 0; j < screen[0].length; j++) {
28 System.out.print(PrintColor(screen[i][j]));
29 }
30 System.out.println();
31 }
32 }
33
34 public static int randomInt(int n) {
35 return (int) (Math.random() * n);

Callers 1

mainMethod · 0.95

Calls 2

PrintColorMethod · 0.95
printMethod · 0.45

Tested by

no test coverage detected