Do you have a complete program yet even though it doesn't behave the way you want? Is it a Swing application?
Steven Villarreal wrote:What I am trying to do is display a tic tac toe board but before it displays it will ask how big the board you want it to be. It's just a basic gui that's all.
This seems like it would imply that you are writing a GUI app. Is it a GUI app or are you just using OptionPane to get specific user inputs?
Steven Villarreal wrote:...then they are good then a grid pops up with what ever value they typed in.
You still need to catch a parse exception.
Campbell Ritchie wrote:Do this, without using exceptions at all:
I agree with you about floating point and currency. Sometimes I try to nudge the OP to the next step without going further. You win.
Campbell Ritchie wrote:Don't use floats for money (I think you shouldn't use floats for anything, but that is a different story.) Use BigDecimal or denominate all your money in pence/cents/etc. and use integer arithmetic. I seem to be disagreeing with Carey there.