Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guzzler line from model years 2004-2007. Given a variable modelYear and a String modelName write a statement that prints the message “RECALL” to standard output if the values of modelYear and modelName match the recall details.

LANGUAGE: JAVA

CHALLENGE:

Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guzzler line from model years 2004-2007. Given a variable modelYear and a String modelName write a statement that prints the message “RECALL” to standard output if the values of modelYear and modelName match the recall details.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,

2 Comments

  1. Suzy Maneeniyom on September 10, 2016 at 6:39 pm

    I am getting error on this. Too many errors and says illegal characters.

  2. [email protected]_18 on January 21, 2018 at 5:34 pm

    You have to use the symbol } at the end of your statement.

Leave a Comment

You must be logged in to post a comment.