Numbers can be inputted from the command line by converting String input to the appropriate numeric format. If using JDK 1.2, double d = Double.parseDouble(s); can be used, where s is the String inputted by the user. Integers can be gotten using int i = Integer.parseInt(s);