01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
package basics.mixedclass;
public class Main {
  private Main() {}
  static public void main (final String[] args) {
    //stdlib.Trace.graphvizShowSteps (true); stdlib.Trace.run ();
    try {
      if (args.length != 1)
        throw new NumberFormatException();
      int vx = Integer.parseInt(args[0]);
      Integer rx = new Integer(vx);
      System.out.println("  Number: " + rx.toString());
      System.out.println("Hashcode: " + rx.hashCode());

    } catch (NumberFormatException e) {
      System.out.println("Error: Bad input");
    }
  }
}