Questions tagged as 'hashmap'

0
answers

Android HashMap with custom adapter [closed]

The purpose of the code is to print the names of the chapters when the season is in the same position, here an example, tengo una serie "x" con 2 temporadas Temporada 1 [10 capitulos] Temporada 2 [10 capitulos}] serie "e" con 1 temporada Tempo...
asked by 22.07.2017 / 05:52
1
answer

HashMap prints weird characters

I am deploying a java servlet in Weblogic, but when invoking it from the browser: link prints me the hashmap with Special characters:    srjava.util.HashMap ' F loadFactorI thresholdxp? @ wtABDULsrjava.util.ArrayListx a IsizexpDwXsr)...
asked by 05.04.2017 / 19:00
2
answers

It is not sent to call java method, help!

Hello good morning to all, today I am trying a java method and the problem is that it is not sent to call, it is a hashMap this is the original code that was "hard code" and then changed dynamically by means of a SQL query within a method, this...
asked by 27.04.2018 / 18:36
1
answer

Repeated elements in hashmap

Hi, I'm finishing a small application that stores, the total sales of each employee depending on the product sold. I am using a hashmap for this, since I have thought that this data structure is the most efficient for my project. The problem I h...
asked by 03.04.2018 / 20:57
2
answers

HashMap in java, error counting elements

I have this method that should return the name of the dish of a restaurant with the number of times it is in total of all restaurants. If the dish is returned 1, if it is more than once must count and return those times. but he's only giving me...
asked by 21.11.2017 / 00:20
1
answer

Problems with "Pluviometer" Hashmap, List ... java.lang.StackOverflowError

I am very fish in this subject and it is not resolved. I get the following error: Exception in thread "main" java.lang.StackOverflowError at Pluviometro.<init>(Pluviometro.java:11) Program: public interface Meses { public s...
asked by 23.11.2016 / 23:16
1
answer

Problem with map

I have a problem, I want to make a user login program with the Map interfaces, but in my class "password" does not let me use the put method to start the programimport java.util. *; public class Main{ public static void main(String[] args)...
asked by 21.05.2017 / 06:36
2
answers

HashTable in the state of a Web Service

Designing a web service that uses a login and keeps all user data and passwords in memory (does not use any database) have raised doubts when it comes to ensuring a decent level of efficiency: First, what data structure to choose to save this...
asked by 05.05.2016 / 16:30
1
answer

Comparison of 2 hashes in perl

I have 2 hash tables, the 2 tables have the same keys, but different values. I need to compare both values of the same key and know the difference in values. Example: Hash 1: clave1 = > 5 Hash 1: clave2 = > 10 Hash 2: clave1...
asked by 14.08.2018 / 02:46
1
answer

Get value from a HashMap

Hi, I am doing an exercise in java for classes and I am not able to make the method consult the Department method. In the class where I have the main, I have made a menu where I ask for the number of the department that is in the Employee class....
asked by 18.06.2018 / 00:02