having a problem with executing this in jGRASP not acceptin user input
class salestax {
public static void main (String[] args) {
try {
double price = Double.valueOf(args[0]).doubleValue();
double salestax = price * 0.0825;
System.out.println("Sales tax is " + salestax);
}
catch (NumberFormatException e) {
System.err.println("Usage: java salestax price" );
}
catch (ArrayIndexOutOfBoundsException e) {
System.err.println("Usage: java salestax price" );
}
catch (Exception e) { System.err.println(e);
}
}
}