Answer the question
In order to leave comments, you need to log in
How to get (remove) a specific element in a HashSet by index?
import java.util.*;
import java.io.*;
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
HashSet<Integer> set = new HashSet<>();
set.add(1);
set.add(2);
set.add(3);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question