reset password
Author Message
rgallegos
Posts: 29
Posted 01:44 Nov 08, 2018 |

JOptionPane will take any text,int,double,etc.. but we expect an int.

Do we create our own Exceptions for input mismatches, use the Java library, or ignore wrong user input for this assignment?

kknaur
Posts: 540
Posted 11:24 Nov 08, 2018 |

You can do this if you want (best practice would be to check for this).  I did not specifically indicate to do this on the assignment so it is up to you if you want to check for this or not.