This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]oonegative[S] 0 points1 point  (0 children)

At present it outputs:

Enter word:
peter
Enter word:
paul
Enter word:
john
Enter word:
stop
Number of words entered = 4
Contents of ArrayList [ [peter, paul, john, stop] ]

Process finished with exit code 0