I sure hope I put this in the right area... this is my first time using a forum.

I started coding through a program at our school in AP Computer Science in Java.

I came across this assignment I'm required to do that I'm hearing has to do with indexOf and substrings and such like that, but I have no clue how to do any of it and I've been stuck on this for the past week and a half now.

I guess I'll post what I'm supposed to do and maybe someone can point me in the right direction.

Example for the finished code:

Enter the first String:
OneTwoThree
Enter the pivot String:
Two
ThreeTwoOne

Also....

Enter the first String:
The Hare outpaced The Tortoise
Enter the pivot String:
outpaced
The Tortoise outpaced The Hare

And....

Enter the first String:
I think. Therefore I am.
Enter the pivot String:
Therefore
I am. Therefore I think.

Also....

Enter the first String:
Where is my pivot String?
Enter the pivot String:
missing
Error: Pivot String not found.

I just need some help. I'm getting frusterated at this and I would love it if someone could help me out here...