Write a code to check whether one string is a rotation of another?

File: RotationString .java

Output:

Checking if a string is rotation of another
Yes javaava is rotation of avajavaw