> What is the error in this JAVA program?

What is the error in this JAVA program?

Posted at: 2014-12-18 
public static void showValue(int x)

The following code has a call to the showValue method.

int x = 8;

showValue(int x) // Error!

Where's the semicolon and you just need x not int x...

int x = 8;

showValue(x);

It seems to be missing a semicolon.

public static void showValue(int x)

The following code has a call to the showValue method.

int x = 8;

showValue(int x) // Error!