HashSet from a textfile
in
Programming Questions
•
11 months ago
Dear all interested readers,
Is it possible to change the line below here:
HashSet<String> words1 = new HashSet<String>(Arrays.asList(new String[] {"in", "the", "on"}));
to a variation which enables me to load the words "in, the, on etc" from a textfile?
Thanks in advance,
Joshua
Is it possible to change the line below here:
HashSet<String> words1 = new HashSet<String>(Arrays.asList(new String[] {"in", "the", "on"}));
to a variation which enables me to load the words "in, the, on etc" from a textfile?
Thanks in advance,
Joshua
1