note: I have not taken any cpu/java classes besides the one I am currently enrolled in. I am currently in a computer science 101 class for java. I am not asking for you to do my homework assignment for me, but to help me get started/understand. Thank you.
My assignment is to ask the user to enter a string
Then to display the length of their string, as well as to ask which numbers they want to look between.
After they enter which numbers they want to look between, it must then display what words/letters are within those 2 numbers.
Example:
Enter a string:
I love coffee
The length of the string is: 13
Enter the numbers you want to look between
2
5
The part of the string between 2 and 5 is: love
My instructor hinted that we will be using scanner, length method, and substring method