Why isn't Collection.remove(Object o) generic? Seems like Collection<E> could have boolean remov
Is there some one-liner bridge method to dump a given Enumeration to java.util.List or java.util.Set? Somethin
Using LINQ on collections, what is the difference between the following lines of code? if(!coll.Any(i => i
How can I get the nth character of a string? I tried bracket([]) accessor with no luck. var string = "Hello,
I'm sure there's a good reason, but could someone please explain why the java.util.Set interface lac
I am relatively new to Java, and often find that I need to sort a Map<Key, Value> on the values. Since
I wanted to create a list of options for testing purposes. At first, I did this: ArrayList<String> plac
I've always been one to simply use: List<String> names = new ArrayList<>(); I use the inte
If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained wit
What are the differences between a HashMap and a Hashtable in Java? Which is more efficient for non-threaded