Я хочу знать, как заставить пользователя игнорировать регистр в моем методе:
public static void findPatient() {
if (myPatientList.getNumPatients() == 0) {
System.out.println("No patient information is stored.");
}
else {
System.out.print("Enter part of the patient name: ");
String name = sc.next();
sc.nextLine();
System.out.print(myPatientList.showPatients(name));
}
}
toLowerCase
илиtoUpper
- person Maroun   schedule 18.11.2014