How could I initialize a HashSet<Long>
with predefined values ?
Example:
HashSet<Long> hsCtr =
new HashSet<Long>(Arrays.asList(6557100201,6557100202,6557100203));
Update: Just force literals into longs by appending "L"
HashSet<Long> hsCtr =
new HashSet<Long>(Arrays.asList(6557100201L,6557100202L,6557100203L));
Thanks