What code would you write to solve this?thefilewithstrings wrote:Sara
James
Lisa
"If the facts don't fit the theory, get new facts" --Albert Einstein
Sneha Kashyap wrote:Please Help ASAP.
ravindra patil wrote:Set set = candidate.entrySet();
Iterator it = set.iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
System.out.println(entry.getKey() + " : " + entry.getValue());
Sneha Kashyap wrote:I am not able to write code to traverse the set and the file.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Swastik
Sneha Kashyap wrote:1. I want to read a file with each line stored into a seperate set.
2. I want to compare these sets(data from file) (to find if it is a subset) with another set containing similar data (I have used containsAll)
3. Find the frequency of each set and store the set and its count in a hashMap
and all these has to be done recursively with the length of the set increasing.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Consider Paul's rocket mass heater. |