I have a simple collections question. I have a Set<String> object. I want an enumeration of the strings in that set. What is the cleanest/best way to go about it?
I am working on an exercise in Thinking in java 4th edition, I have an idea of how to do it, but I am not sure how to do it the way the book specifies. the question is: Create a set of vowels. working from uniquewords.java, count and display the number of vowels in each input word and also display the ...
I once saw in our codebase someone use a trick that did indeed allow him to put String and some other arbitrary type in the one collection. I won't post the code, because I strongly agree with the people saying it shouldn't be done, and also the instance where I saw it caused a very peculiar bug at a most inopportune ...