unable to find problems with this piece of code
<p>I have this piece of code, I think I have all the braces covered. Still getting braces not closed error. When I put more braces, then gives me something else. Can you anybody tell me what I am doing wrong here?</p>

<pre><code>    public static boolean isValid(int day, int month, int year)
    {
        if (year &lt; 1900)
         {
            return false;
        }
        else {
            if (month&gt;0 &amp;&amp; month&lt;13)
                {
                    if (month==1 || month==3 || month==5 || month==7 || month==8 || month==10 || month==12) 
                        {
                            return day &gt; 0 &amp;&amp; day &lt;=31;

                        }
                    else if (month==4 || month==6 || month==9 || month==11)
                        {
                            return day&gt;0 &amp;&amp; day&lt;=30;
                         }
                    else if (month==2) 
                         {      
                            if (isLeap(year))
                                 {
                                    //(d= 29);
                                    return day&gt;0 &amp;&amp; day &lt;=29;
                                 }

                                else {
                                    return day&gt;0 &amp;&amp; day&lt;= 28;
                                 }
                         }
            }

        }
        }   
}
</code></pre>
