Java Error 'else' without 'if'
<p>I need to have the largest number displayed of three given numbers. 'Z' should be displayed as 25 is the largest number. Anyway, while compiling this shows up. <img src="http://i.stack.imgur.com/ga5UH.png" alt="Error Message"></p>

<p>I have no idea how to fix it, the examples I am given in my lessons are incorrect and when looking online most other code is way more complicated than mine and are of little help. 
My code is as follows: </p>

<pre><code>class Greater
{
    public static void main(String args[])
    {
        int x = 10, y = 5, z = 15;
        if (x&gt;y) and (x&gt;z);
        {
            System.out.println(x);
        }
        else if(y&gt;z);
        {
            System.out.println(y);
        }
        else
        {
            System.out.println(z);
        }
    }
}
</code></pre>
