How to write multiple assignments in a single statement?

public class MainClass{

public static void main(String[] argv){
int a, b, c;

a = b = c = 777;

System.out.println(a);
System.out.println(b);
System.out.println(c);

}

}
output
777
777
777