It's been a little while since I've done any Java, but something that immediately jumps out at me is that you've not declared any types for your variables in main. I don't know how the JOptionPane stuff works, as little of my Java experience is with GUIs, but I imagine you still have to declare...