Why do i see 'error: ';' expected' in java?

Example:

int x = 10

You've missed a semicolon at the end of a statement.

Solution:

Add the missing semicolon.


int x = 10;

Beginner's Guide to Java