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.