I have a quick question. My main method listed below will not pass my array values into my constructor WordCounter. Is is due to the instantiation of t1 in my for loop? I know the array is being filled correctly with the strings because I can
test it with a SOP, and it outputs correctly. Im just wondering why this doesn't work.
The constructor in my WordCounter class accepts a
String object.
It works when I instantiate all 4 objects individually, but I was hoping to get away with this code.
Thanks in advance.
And here is the constructor for WordCounter:
[ January 20, 2004: Message edited by: Steve Wysocki ]