How do you store a char variable into an array ? For instance a letter inputted by keyboard to store directly into array and then display array. Using it for Hangman game to try and display letters already used by player.
Printable View
How do you store a char variable into an array ? For instance a letter inputted by keyboard to store directly into array and then display array. Using it for Hangman game to try and display letters already used by player.
Which part of this is giving you trouble? Getting input from the user? Storing a value in an array? Displaying an array?
Split your program up into smaller pieces, then create an SSCCE for the piece you're stuck on.
I'd recommend googling "Java arrays" to get started.