Here's my code in C#:
        string month;
        do
        {
            Console.WriteLine("put month");
            month = Console.ReadLine();
            switch (month)
            {
                case "1":
                    Console.WriteLine("dsad");
                    Console.ReadLine();
                    Console.WriteLine("\neheheh!");
                    Console.WriteLine("\nhihihihi");
                    break;
            }
        }while(month!="Quit");
Here it is in Java:
    Console C = System.console();
    String month;
    int year;
    do {
        month = C.readLine("\nPlease put a valid month: \n");
        switch (month) {
            case "1":
                C.readLine("\nPlease put a valid year: \n");
                System.out.println("\nThe month is January!");
                System.out.println("\nJanuary has 31 days!");
                break; 
        }
    } while (month != "Quit");
My problem is that my code in Java won't terminate even if I type the word "Quit".
This is a follow up to this question.
 
     
     
    