Hi, I am a beginner in Java Programming. I am working on an assignment which includes Circular shift of the words inside a string. I could find a lot of stuff about circular shift of numbers or characters but I have no idea about circular shift of complete words.
As an example,
A cup of tea
Tea a cup of
Of tea a cup
Cup of tea a
How can I implement this in Java?