Two Laptop Bag
The moose likes Cattle Drive and the fly likes OOP-2 NaturalLanguageMultiply need hints Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "OOP-2 NaturalLanguageMultiply need hints" Watch "OOP-2 NaturalLanguageMultiply need hints" New topic

OOP-2 NaturalLanguageMultiply need hints

Marcus Milligan

Joined: Mar 14, 2001
Posts: 6
Hey Java People!
I am at oop-2 and I have created a HashMap I was going to fill this with numbers and matching word i.e. one = 1. But what the smeg is the vector for? And why is 28 the majic number for HashMap objects or am I reading too much into this?? Please help this is eating away at me brain
Many thanks,
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Think how many distint numbers there are in 0 to 99. That should help with the 28 thing.
Marcus Milligan

Joined: Mar 14, 2001
Posts: 6
Ah brain fart I see now. Now how does the vector come into it can I not just read the input and do a pull from the HashMap?
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Vector has nothing to do with the assignment per se. That code is only there as an example of how to do a static block.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: OOP-2 NaturalLanguageMultiply need hints
jQuery in Action, 3rd edition