answer to Saldy's question,
April 30, 2009 at 4:45 PM
public static void main(String[] args) { String inputBase = JOptionPane.showInputDialog("enter base number between 1-9"); String inputExponent = JOptionPane.showInputDialog("enter exponent between 1-9"); int base = Integer.parseInt(inputBase); int exp = Integer.parseInt(inputExponent);