An assignment statement has three elements:
The statement is terminated by a semicolon.
public class MainClass{ public static void main(String[] argv){ int a = 1; int b = 2; int c = 0; c = a + b; System.out.println(c); } }
3