Przykład

public static void main( String[] args) {
int x = 0;
int y = 0;
x = y = 10;
System.out.println( x + " " + y ); //$NON-NLS-1$
}

Rozwiązanie
Wykonaj przypisanie do zmiennych w osobnych instrukcjach.

public static void main( String[] args) {
int x = 0;
int y = 0;
x = 10;
y = 10;
System.out.println( x + " " + y ); //$NON-NLS-1$
}