(String[] args)
| 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) |
| 37 | 00000: CA FE BA BE 00 00 00 34 00 61 0A 00 05 00 31 07 |