MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / main

Method main

05Lab-Kd Tree/PointSET.java:77–88  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

75 }
76
77 public static void main(String[] args) {
78 String filename = args[0];
79 In in = new In(filename);
80 PointSET brute = new PointSET();
81 while (!in.isEmpty()) {
82 double x = in.readDouble();
83 double y = in.readDouble();
84 Point2D p = new Point2D(x, y);
85 brute.insert(p);
86 }
87 brute.draw();
88 }
89}

Callers

nothing calls this directly

Calls 3

insertMethod · 0.95
drawMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected