Questions tagged as 'hashmap'

1
answer

You doubt to save a String in HashMap

I have a little problem..I'm using a HashMap > to save values. But in certain cases I have to store a String instead of a List. Is there a way to do some cast or something like that without having to create another Map? Part of the code...
asked by 25.02.2018 / 14:01
1
answer

Modify Map Java

I have a problem to modify a HashMap, I enter the Rut data (as a key) and its values, but when I want to modify the key it replaces the values, I do not know if I understand. For example, the values entered are Rut: 11, Name: aa, Position bb,...
asked by 22.11.2017 / 04:49
1
answer

How to divide an element of a ListView with hashmap?

public class ClientesActivity extends AppCompatActivity { private Movil_DBHelper moviDb=null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_c...
asked by 01.09.2017 / 16:12
0
answers

Process data from a HashMap in Java

If I have the following hashMap in Java Key - {value} a {1,2,3,4} b {2,3,4,5} c {1,2,3,4} d {3,4,5,6} I would like to obtain the following result by console: a->2 b->1 d->1 How do I implement this proc...
asked by 04.01.2017 / 18:01