This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The code below is from something I am writing for the Java Ranch. OOP-2 NaturalLanguageMultiply
Given a string, I need to be able to check if that string is in my hashmap and if not then throw an exception
This works fine and dandy if I have a string that creates two elements in the array (String number = "two-three";) but if it only has one, (String number = "three";), I get a ArrayIndexOutOfBoundsException