I need users to be able to input numbers in the BigDecimal data type.
Numbers[i] = (BigDecimal)JOptionPane.showInputDialog(frame,"Type in a Number",0);
This is the code I tried to use but I get an error saying "Cannot cast from String to BigDecimal."
Any Advice?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…