Question
What’s wrong with replacing the println statement in Figure 14.2’s mainmethod with these two statements?String description = car.toString();System.out.println(description);
Step 1
2's main method. Understand what the original println statement is doing, which is likely printing the output of the car object directly. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD