Is Quoted

Write a static method that will receive two Strings, a needle and a haystack. The method should return true if the needle is found surrounded by quotation marks. Also, there must either be a space next to the quotes or a String boundary.

Preconditions:

Examples:

isQuoted(n, text) returns the following assuming n is bark....

Files Needed




©2003–2016 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License