Given two strings implement a method which determines whether the characters in the second string is a substring of
the characters in the first string (check if second string exists as continuous/unbroken chain of characters the
first string).
Don't use contains method on String class.
isSubstring("go home", "ome") // true
isSubstring("go home", "me") // true
isSubstring("go home", "abc") // false
This repository contains a class that returns true. Replace the body of the class with an implementation which will return true or false to satisfy the above criteria. We have already created some tests (JUnit5) which need to pass.
- Clone the repository
- Create a branch
- Write the implementation
- Commit your code with a suitable commit message
- Create a pull request