Question: What is wrong with the following code? Explain the type of error and suggest how to correct it. if (age >= 18); System.out.println System.out.printin
What is wrong with the following code? Explain the type of error and suggest how to correct it. if (age >= 18); System.out.println System.out.printin else ("You can get a lottery ticket."); ("You are not allowed to buy lottery tickets.");
Step by Step Solution
There are 3 Steps involved in it
The image displays a piece of code written in Java which intends to check if a persons age is greate... View full answer
Get step-by-step solutions from verified subject matter experts
