Computer Science, asked by Shanti115, 7 months ago

Write a function prototype named COMPARE that takes a sentence and a word as parameters and returns true or false.​

Answers

Answered by rasmikrishnan123
2

Answer:

boolean compare( string s, string w)

{

boolean z;

z=s.equals(w);

if(z=='true')

return true;

else

return false;

}

Similar questions