+ 1
Java Arrays and For Loop
Good Day sirs and Ma'am, I'm new in Java so I'm having difficulties on this. How can I get a Specific Value in an Array, Like the Game is the variable name, and the value is The Forest using the Scanner Method and it will print the result.
2 Respostas
+ 6
I hope it's okay for you if a 'Mam' answers your question.
What you describe is a Map. A Map (in other languages often called dictionary) stores key and value pairs. So if you put <String, String> entries to your Map it should match your expectations.
As for the input, are you talking about the code playground or a standard console input?
+ 3
Thank you for all the answer, Sir blackwinter and Ma'am Tashi N