Question: Get a j ava method that akes an array ofcharand aStringas input parameters and and returns anboolean. The method returnstrueif we can find the input
Get a java method that akes an array ofcharand aStringas input parameters and and returns anboolean. The method returnstrueif we can find the input string inside the array by starting at any position of the array and reading either forwards or backwards.
> Search.hiddenString(new char[]{'a','b','r','a','c','a','d','a'}, "carb") true > Search.hiddenString(new char[]{'a','b','r','a','c','a','d','a'}, "brad") false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
