"ABC", "BCA", "CAB"
Write a Java program that reads in 2 strings: the first string contains some text and the second string contains a pattern. The second string always has 3 letters.
The program will determine if the first string contains a cyclic shift of the second string and prints "yes" if so and otherwise it prints "no". Sample output:
First string: "ABCDEFGH"
Second string: "DBC"
Output: "yes"
Because "ABCDEFGH" contains "BCD" which is a cyclic shift of "DBC
Test your program by running it and entering an integer.
Use this Unicode table to find some interesting symbols to print:
https://www.tamasoft.co.jp/en/general-info/unicode-decimal.html