/*
I am trying to read user input "single" "married" "legally separated" "widow/er" only. */
public static String readStatus() {
Scanner scan = new Scanner(System.in);
String status = "";
do {
System.out.print("Enter the status of the taxpayer: ");
status = scan.nextLine();
if (status != 'single' && status != 'married' && status != 'legally separated' && status !='widow/er');
System.out.println("You have to type single. married, legally separated or widow/er");
} while (status == 'single' && status == 'married' && status == 'legally separated' && status =='widow/er');
return readStatus;}