-2
I have a question about the use of Hashmap
of Java. On this occasion, I have a class with the attribute Hashmap custo
.
In this class, I need to create a builder and in this builder, I need to request the insertion of 3 integers that will compose my cost (gold, wood and diamond).
My question is: how do I request this 3 data in order to fill them in my cost? And how do I display and use the same later?
https://answall.com/a/72885/28595
– user28595
Requesting means asking the user to enter the information. If you didn’t explain the input, then assume it is from the default input (usually the keyboard). If your problem is this, you have no problems with the
HashMap
but with user interaction– Jefferson Quesado
I need to get him to type in this 3 information and I need to store it, however, I don’t know how to do this using Hashmap.
– Estêvão Anderle