I'm extremely new to Java, so bear with me, eh?
Next semester in my computer science class we're going to learn Java. Being a relatively experienced programmer (in Python mostly, but a teeny tiny bit of C as well), I decided yesterday that I should learn Java so I could be a bit ahead of the curve.
After having read through most of the basics of Java in the Java tutorial, I thought it'd be a good idea to search for some simple challenges to complete to make sure I had it down. After a bit of searching, I found a post on this forum about another person who was given the task of writing a program that could determine if one string was a substring of another. I thought this would be a cool challenge, so I decided to code it. For the most part it works - I think the general algorithm is solid - however when I try to make it so the user can specify the string through console input, it throws an error at me, which I can't decipher.
So my question is, how do I properly get user input from the console?
Also, I have no idea if this code is "proper" Java.
Here's the code:
If you have any suggestions for any of the code, they're greatly appreciated!