Published 12.05.2018 on subject Business by Guest

Write the code that displays the string “350z” in the carlabel when the car variable contains the string nissan” (entered using any case).

Answered by Guest

The correct answer for this question is this one:
assume that you have already the function of the code fragment. Then all you need to have is the condition:

code is in Java.
str1 holds the whole string


if (str1.contains("nissan")
{
System.out.println("350z);
}

Hope this helps answer your question and have a nice day ahead.