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

Method main

java/Chapter 9/Question9_7/Question.java:57–72  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

55 }
56
57 public static void main(String[] args) {
58 int N = 10;
59 Color[][] screen = new Color[N][N];
60 for (int i = 0; i < N; i++) {
61 for (int j = 0; j < N; j++) {
62 screen[i][j] = Color.Black;
63 }
64 }
65 for (int i = 0; i < 100; i++) {
66 screen[randomInt(N)][randomInt(N)] = Color.Green;
67 }
68 PrintScreen(screen);
69 PaintFill(screen, 2, 2, Color.White);
70 System.out.println();
71 PrintScreen(screen);
72 }
73
74}

Callers

nothing calls this directly

Calls 3

randomIntMethod · 0.95
PrintScreenMethod · 0.95
PaintFillMethod · 0.95

Tested by

no test coverage detected