Most voted "hashset" questions
7 questions
Sort by count of
-
14
votes2
answers3795
views -
6
votes3
answers1337
viewsIn what order is a Set stored? Random?
When I store something inside a Set, the order in which it stores is random? And how could I order a set Set?
-
4
votes1
answer1091
viewsBest way to go through a Hashset
I’m used to programming in PHP and now I’m studying Java, and the Collections API is something new and very interesting for me. I searched the internet and easily found several ways to go through a…
-
1
votes1
answer79
viewsError calling add in a Hashset
Every time I try to create a objeto.add(); and put the attribute in it, it continue to give me an error. See my code: public class Agencia { private String nome; private String endr;…
-
1
votes2
answers123
viewsCheck if Java List has duplicate object attributes
I need help creating a logic that checks whether certain attributes of an object, stored in a List<Object>, there are more than two times. I’ve tried using the Set<E> to check whether it…
-
0
votes1
answer40
viewsHow to use Linkedhashset to implement this Ihashset interface?
How to use LinkedHashSet implementing the interface IHashSet using chain to resolve conflicts and with load factor 0.75? //Usando essa interface public interface IHashSet{ public void put(Object…
-
0
votes1
answer133
viewsRead data from a file and save to a Set, but Set is null
I’m trying to read a txt file, select a specific column called "customerid", take all the values from that column and show on the screen how many different values there are. But when I try to do…