<<< Code that prevents an InputMismatchException | Index | Scanner hasNextDouble example >>> |
if (customerType != null)
{
if (customerType.equals("R"))
discountPercent = .4;
}
<<< Code that prevents an InputMismatchException | Index | Scanner hasNextDouble example >>> |