Java zipcode prog2
<p>Can someone please explain to me why when !sdesf is entered as zip code it says !sdesf is on the East Coast. Shouldn't it be !sdesf is an invalid zip code. Here's my codes</p>

<pre><code>String zipCode;

    Scanner input = new Scanner(System.in);


    System.out.print("Enter 4-digit zip code: ");
    zipCode = input.nextLine();

    if (zipCode.charAt(0) &lt;= '3')
        System.out.println(zipCode + " is on the East Coast.");

    if (zipCode.charAt(0) &gt;= '4')
        if (zipCode.charAt(0) &lt;= '6')
            System.out.println(zipCode + " is in the Central Plains area.");

    if (zipCode.charAt(0) == '7')
        System.out.println(zipCode + " is in the South.");

    if (zipCode.charAt(0) &gt;= '8')
        if (zipCode.charAt(0) &lt;= '9')
            System.out.println(zipCode + " is in the West.");

    else
        System.out.println(zipCode + " is an invalid ZIP Code.");   
</code></pre>
