Find the errors in the following code:
1. The following statement should assign 0 to z if a is less than 10; otherwise, it should assign 7 to z. What is wrong with it?
z = (a <>
2. Assume that partNumber references a String object. The following if statement should perform a case-insensitive comparison. What is wrong with it?
if (partNumber.equals("BQ789W4"))
available = true;
3. What is wrong with the following code?
double value = 12345.678;
System.out.printf("%.2d", value);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here