1. Engineering
  2. Computer Science
  3. implement a method isrotation which takes two strings as input...

Question: implement a method isrotation which takes two strings as input...

Question details

Implement a method isRotation which takes two strings as input and decides if one string is a rotation of the other. For example, cdeab is a rotation of abcde Implement the main method which takes two string as input from the user and prints whether one string is the rotation of the other.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution