Hey all, I need help with this.
I have a .txt file, called "littlefile.txt", inside that .txt there is text of course and my java program is supposed to read that text (as a String), and find a word like ... "hello", ... that's ok, but the java program must print on screen the word that is before "hello" and the one that is after... and THAT'S what i need help with.
I think it could be done mixing methods like indexOf(); charAt();
Any help appreciated!