Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LetterInventory Constructor

807588Jan 27 2009 — edited Jan 27 2009
Hey guys,

I need help creating a constructor for this Class I'm implementing. The information for my entire assignment is located here: [http://nifty.stanford.edu/2006/reges-anagrams/inventory.html]

Anyways, I have this Class constructor:
LetterInventory(String data)
And I'm told that this constructor should initialize the LetterInventory object with the frequency (number of occurrences) of each letter within the string data. Letters should be treated as case insensitive and non-letter characters should be ignored. Internally, the LetterInventory class should store the frequencies of the 26 possible letters in an array of 26 elements. So if anyone could please help me through this, I'd really appreciate it!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2009
Added on Jan 27 2009
7 comments
539 views