tr
)
sort -u
)
wc -l
)
grep
)
sed
)
AssociativeArray words = new AssociativeArray(); while (!stdin.eof()) { word = stdin.readString(); ++words[word]; } System.out.println("There are " + words.size() + "words."); for each word in words { System.out.println(word + " appears " + words[word] + " times."); }
Hashtable
class (in java.util
).
hashCode()
, which is used to compute
the hash value of each object.
Hashtable
class?
Hashtable
class?
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
Source text last modified Wed Dec 3 09:17:41 1997.
This page generated on Wed Dec 3 09:19:24 1997 by SiteWeaver.
Contact our webmaster at rebelsky@math.grin.edu