Why won't my code work in Java?
<p>Here's my code in C#:</p>

<pre><code>        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");
</code></pre>

<p>Here it is in Java:</p>

<pre><code>    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");
</code></pre>

<p>My problem is that my code in Java won't terminate even if I type the word "Quit". </p>

<p>This is a follow up to <a href="http://stackoverflow.com/questions/12882907/writing-an-infinite-loop-on-the-command-line">this question</a>.</p>
