Question: 2.2.3 Score: Sorry, you did not answer the question correctly Answerts
ID: 3880888 • Letter: Q
Question
Question: 2.2.3 Score: Sorry, you did not answer the question correctly Answerts): (Your response(s) are shown below) Suppose a Car variable called jane taCar exists and already refers to a Car object double amt Write a statement that prints jane tsCar's make to the console using a printin statement Here is the source code for the Car class: Car java. public class Test1 ( public static void main(Stringll args) ( Car janetsCar new Car("Toyota", 10.0, 8.5); conpilation exror (line 2, colunn 40): error Error. 1 expl anation: Sorry! No explanation found. System. out. print1n( System. out. println (janet sCar. getFuel0): System. out. println (janetsCar, unusedCap) unt)Explanation / Answer
You are getting an error because your first line of the code is incomplete (System.out.println().
It has to be System.out.println(janetsCar.getMake());
**Comment for any further queries.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.