Questions tagged as 'hashmap'

0
answers

doubts in Java / JPA code

I have a little project and I'm new to Java. I need to do a report search and this will consist of three tables in the database, until then the relationship is ok, but the question, how do I call this report? I tried to use HashMap with JPA,...
asked by 26.01.2018 / 14:44
0
answers

Delete Method in a HashMap

I have a code from a trie tree that has insert and search methods, but does not contain a method of removal. I tried to implement but I did not succeed. I would like someone to give you a hint on how to implement it. Using this same code below i...
asked by 21.01.2018 / 21:06
1
answer

Using the hashmap to make comparisons

I have the following situation: I get a list of itensVenda , and in it I have associated with Venda . In Venda I have a list of itensVenda and Cliente , and in Client, I have associated a Sales list. I have to...
asked by 20.07.2017 / 02:39
1
answer

Method returning empty list

I'm having a problem with a method in java. The intent is to split a HashMap into pages, and return an ArrayList with each page. Code: public static ArrayList<HashMap<String, Key>> getKeysMap(HashMap<String, Key> map,...
asked by 15.07.2017 / 20:50
1
answer

Doubt - HashMap

I need to go through a list of hotel reservations and, for each such reservation, capture the Event that is associated with it. At the end of the process I need to say how many hotel reservations each event has and finally play the result on the...
asked by 24.06.2017 / 18:51
1
answer

Doubt - HashMap & List

My need was as follows: A report that would bring the Event and the number of hotel reservations that were associated with that Event. And so it was followed as shown in the code below: List<IHotelReservation> iHotelReservationList =...
asked by 26.06.2017 / 19:44
1
answer

Connection Database Android Studio passing Date

I'm having trouble with the following, I make the connection to the Database all right but in the code I use a Map of parameters because I step userName, password, etc, however I need to pass a variable of type Date tbm. All these variables will...
asked by 01.05.2017 / 02:37
1
answer

Use user-selected content in ComboBox as key (map) in enum class

Beauty, people? I'm having a hard time. That's exactly what the title says. Code containing cbox: JFileChooser fc = new JFileChooser(new File(pastaPadrao)); String[] siglaStrings = { "Selecione", "CIC", "CISEI", "GERMEM" }; public JComboBox...
asked by 25.01.2017 / 20:01
1
answer

How to go through Hashmap with subkeys? [duplicate]

How to traverse a HashMap that has another HashMap ? for (Map.Entry<Date,HashMap<String, Integer>> entrada : m.entrySet()) { // .... }     
asked by 26.01.2015 / 13:21
1
answer

Doubt on how to use Hashmap [closed]

I'm having a question about using Hashmap of Java. On that occasion, I have a class with the Hashmap custo attribute. In this class, I need to create a constructor and in this constructor, I need to request the insertion of 3 integers...
asked by 14.11.2018 / 17:22