MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

strings/Turtle.java:19–31  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

17 name, x, y);
18 }
19 public static void main(String[] args) {
20 PrintStream outAlias = System.out;
21 Turtle tommy = new Turtle("Tommy",
22 new Formatter(System.out));
23 Turtle terry = new Turtle("Terry",
24 new Formatter(outAlias));
25 tommy.move(0,0);
26 terry.move(4,8);
27 tommy.move(3,4);
28 terry.move(2,5);
29 tommy.move(3,3);
30 terry.move(3,3);
31 }
32}
33/* Output:
34Tommy The Turtle is at (0,0)

Callers

nothing calls this directly

Calls 1

moveMethod · 0.95

Tested by

no test coverage detected