電算道 den san do 電算道

learn, solve, create, teach

Statistics

Level1
Created Byluxexmachina13
Times Taken0
Times Marked0
CreatedNov. 11, 2013, 6:45 p.m.

Delete Phrases

Java

Write a program that takes a long string as an input and another smaller string and prints to the console an updated version of the first string with any instances of the second string deleted from it. If the first string does not contain the second one, print "STRING NOT FOUND." For instance:

INPUT
potato potato potato latvia
potato

OUTPUT
latvia

INPUT
lolololololololololololololololol
rawr

OUTPUT
STRING NOT FOUND

You are unable to take this test because you must be signed in to complete tests.