//figure out some code that tells it to store what is after the "-" (substring??)
Kat Cur wrote:I appreciate the help in referring me to the docs.oracle page … I've read it. I'm a beginner … like infant beginner and have searched the internet high and low for an example of the syntax you would use when using the indexOf an array element and then removing the leading chars up to the index of that char. I understand that I need to use substring somehow but that is my question … how?
The comments "//do something with … " is what I am asking help with. I don't know what to do other than "use substring". How? Any examples or links to examples so I can visualize it would be greatly appreciated. I'm feeling frustrated with myself :-(
Kat Cur wrote:The one line of code I needed instead of an if/else statement...