Are the following statements correct? Which one is better?
(a)
if (age<16)
System.out.println
("Cannot get a driver's license");
if (age >= 16)
System.out.println
("Can get a driver's license");
(b)
if (age<16)
System.out.println
("Cannot get a driver's license");
else
System.out.println
("Can get a driver's license");
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.