Find all the errors in each of the following Javastatements, and explain how you could x
them. The amount of errors is an approximation and depends on howyou x them.
(c) (5 errors)
class FixMePlease
{
Scanner getInput;
int x;
double y;
char z;
String s;
public void askUserForInput()
{
System.out.println(“Enter an integer:”);
x = getInput.nextInt();
System.out.println(“Enter a decimal:”);
y = getInput.nextDouble();
System.out.println(“Enter a character:”);
z = getInput.nextChar();
System.out.println(“Enter a String:”);
s = getInput.nextString();
}
}
(d) (6 errors)
class such-a-mess
{
public numberProperties(int x)
{
if (x%2 = 0)
System.out.println( The number x is even. );
if (x < 10);
System.out.println( The number x is less than 10. );
}
}
(e) (5 errors)
class needsHelp
{
if (x > = 5)
System.out.println(x + ” is greater than or equal to 5.”)
else (x < 5)
System.out.println(x +
PayPal Gateway not configured
PayPal Gateway not configured