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

Method main

strings/Hex.java:24–34  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

22 return result.toString();
23 }
24 public static void
25 main(String[] args) throws Exception {
26 if(args.length == 0)
27 // Test by displaying this class file:
28 System.out.println(format(
29 Files.readAllBytes(Paths.get(
30 "build/classes/java/main/onjava/Hex.class"))));
31 else
32 System.out.println(format(
33 Files.readAllBytes(Paths.get(args[0]))));
34 }
35}
36/* Output: (First 6 Lines)
3700000: CA FE BA BE 00 00 00 34 00 61 0A 00 05 00 31 07

Callers

nothing calls this directly

Calls 2

formatMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected