This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I am trying to create an int from a string that I get from my getter (9,10,11,12,13,14,15,16). I've verified that the string is passed in the format above. However when I loop to through the Tokenizer it skips values in my string. Also my new Array values are all set to 0. This is my output. Would someone point me in the right direction. Thanks
Maulin nailed it. And the reason your array output shows all zeros is that you loop through the array with the index "j" but print the value at position "i" which is one past your last valid value. If you only fix the first problem, you'll get an ArrayIndexOutOfBoundsException.
Terry J Thomas
Joined: Sep 15, 2004
Thank you both, it's working now! So my lesson tonight is to look my code. [ September 15, 2004: Message edited by: Terry J Thomas ]