java code not work
<p>i'm doing a java tutorial on youtube </p>

<pre><code>import java.util.Scanner; 

public class Java2 
{ 

    public static void main(String[] args) 
    {         
        Scanner yearenter = new Scanner(System.in); 
        System.out.println("Enter Year");     
        int year = yearenter.nextInt();     
        System.out.println("The Year " + year + "is ...");     
        boolean isLeapYear;     
        if (isLeapYear = (year % 400==0)^(year %4==0)&amp;&amp;(year%100==0))
        {
            System.­out.print(" not a leapyear");
        }
        else 
        {
            System.out.println(" a leapyear");
        }
    }    
} 
</code></pre>

<p>the code used and it does not work </p>
