decadence18 wrote...
Up until this point in our code, we were mostly comparing integer values so I would just convert them with parseInt and then compare them to make sure the value isn't null or empty.numberOfActors = 0;
howManyActors= JOptionPane.showInputDialog("How many actors?");
try
{
numberOfActors = Integer.parseInt(howManyActors);
}
catch(NumberFormatException nfe)
{
JOptionPane.showMessageDialog(null, "Invalid numeric entry");
}
