Need help with Java project !!!

Sharky Forums


Results 1 to 2 of 2

Thread: Need help with Java project !!!

  1. #1
    Catfish
    Join Date
    Feb 2001
    Location
    Markham, Ontario, Canada
    Posts
    181

    Exclamation Need help with Java project !!!

    I got this big computer science project due March 28 and I still don't understand it. It's about teaching the comp to write some text or something. Here's the link to the project: http://www.scar.utoronto.ca/~mendel/...signments.html

    I read the handout like a thousand times and I still don't understand the Hashtable and FrequencyTable stuff. What the hell is the difference between VectorHashTable and HashFrequencyTable? If you go to the above link and goto the "Announcements and Hints..." page, someone actually asked the same question but got a totally useless reponse from our prof. Info on the starter code are on the "Documentation for the starter code..." link on the above link. Could someone plz help me?! I'm mostly lost on the concept part. Like for the VectorHashTable, I'm thinking we're suppose to make an array of vectors with size 1024??
    How am I suppose to use VectorHashTable and HashFrequencyTable?? My icq# is 6201779 if you can help me thnx.

  2. #2
    Mako Shark dighn's Avatar
    Join Date
    Nov 2000
    Location
    Vancouver, BC Canada
    Posts
    3,171

    Post

    Like your prof said the HashVectorTable and HashFrequencyTable classes are just implementations of the HashTable and FrequencyTable interfaces. The .java files for those interfaces contain short explanations in them. You might wanna read them. From what I saw I think the HashTable interface lets you add items with a key and retrieve items with a key. The FrequencyTable interface lets you add strings and find the frequencies(occurances) of each characters in a string. I don't know what the heck is "my alphabet" though.


    ------------------
    someone set up us the bomb!


    [This message has been edited by dighn (edited March 20, 2001).]
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •