ObjectInputStream (FileInputStream? kinda lost)
Hello, I am trying to fill two textboxes with information contained in a .txt file like such
"java","slang for coffee"
"hangman","the name of the game"
(on a line below would be another combination of word\hint)
and separate the two words into separate text boxes and be able to navigate through each combination in order to choose one of them to start a new 'Hangman' game. The idea is that player 1 chooses the word Player 2 will have to guess, which comes with a hint, then Player 2 does the same. Idealy, i want to be able to wrap around when I reach the end of the list to go back to the start of it.
I know I should use some kind of Stream but every Class and method I tried haven't given me any solid results. May anyone give me some guidelines please?