File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OOP-2 NaturalLanguageMultiply need hints

 
Marcus Milligan
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Marcus
 
bill bozeman
Ranch Hand
Posts: 1070
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marcus,
Think how many distint numbers there are in 0 to 99. That should help with the 28 thing.
Bill
 
Marcus Milligan
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Thanks,
Marcus
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic