code: public static void main(String[] args)
     {
        try
        {
           if (args.length != 2)
           {
              System.out.println("Usage: HexDump <input file name> <output text file name>");
           }
           else
           {
              System.out.println("Dump started.");
              long start = System.currentTimeMillis();
              process(args[0], args[1]);
              long elapsed = System.currentTimeMillis() - start;
              System.out.println("Dump completed in " + elapsed + "ms");
           }
        }
  
        catch (Exception ex)
        {
           System.out.println("Caught " + ex.toString());
        }
     }
docs: Main method.
  
  @param args array of command line arguments