Insert all the Strings that the user enters in to the args[] string array, since this array is being passed to each successive call of main, So you will have a list of all entered keywords in this array.
In order to check for repetitions just check if the entered word is present in the args[] array.
But instead of calling the main recursively I recommend you delegate this responsibility to some other method and let that method call itself recursively.
stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
But instead of calling the main recursively I recommend you delegate this responsibility to some other method and let that method call itself recursively.
I agree.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
i also love this site..:$ ahihihi..
ahihihi...
Practically a Master Poster
603 posts since Jan 2009
Reputation Points: 115
Solved Threads: 5