Do While with String varification
Hello I am in need of help. I have an assignment to do that needs to a do while loop to check if "m" or "s" has been typed in.
I know the line is incorrect and it is what I need help with. I need the while to continue until m or s is typed in but dont know how to do so! PLEASE HELP!
System.out.println("Enter offence type: ");
offenceType = input.next();
offenceFee = minorValue;
finalMinorOffences = finalMinorOffences + 1;
offenceFee = SERIOUS_FINE;
finalSeriousOffences = finalSeriousOffences + 1;
finalFee = finalFee + offenceFee;
}while(offenceType != ("m" "s"));