How do you create a constructor for a hashdet that adds the elements to the colections? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you create a constructor for a hashdet that adds the elements to the colections?

16th Sep 2016, 11:42 PM
Alexis
2 Answers
0
Not quite sure what you're trying to say but this might help. http://www.tutorialspoint.com/java/java_hashset_class.htm This link explains all the details necessary for hashSets including code examples.
16th Sep 2016, 11:54 PM
Ousmane Diaw
0
written you an example of what I think you're looking for in two different ways: http://www.sololearn.com/app/java/playground/cim55VFiSykE/
17th Sep 2016, 12:08 AM
Greg Sims
Greg Sims - avatar