From the Hangman programme that John used as an example I changed around my cypher programme, but I noticed something I'm not too sure about
When running a while loop to remove a randomly picked letter and reducing the original message by that letter using substrings, why does this line of code work?
message = message.substring(0, index) + message.substring(index + 1);
The second substring doesn't have an end value, how does that work?
For my version of the programme I had included the value of the message length to give an end to the substring
message = message.substring(0, index) + message.substring(index+1, len);
len is an int value based on the messsage length