Difference between revisions of "Input Validation"
From CompSciWiki
Line 25: | Line 25: | ||
message = JOptionPane.showInputDialog("Please Enter a, b or c:"); | message = JOptionPane.showInputDialog("Please Enter a, b or c:"); | ||
− | while() | + | while(!message.equals("a") && !message.equals("b") && !message.equals("c")) |
{ | { | ||
message = JOptionPane.showInputDialog("Please Enter a, b or c:"); | message = JOptionPane.showInputDialog("Please Enter a, b or c:"); |
Revision as of 12:27, 6 April 2010
Back to the Program-A-Day homepage
ProblemInput Validation |
SideSectionTitle
An image or By Students section | |
---|---|---|
SolutionThe solution... | ||
Code |