David Newton wrote:It's not clear to me what you are actually trying to do: repeat a word from the command line the number of times specified on the command line, but not more than 100 times?
[My Blog]
All roads lead to JavaRanch
Christophe Verré wrote:1. If you want to take the word you passed to the command line, you have to store it in a String, not in an integer
2. To loop 100 times, we usually use loop from 0 to 100(excluded)
3. What you want to print is the word, not the loop index
Can you figure out how to correct each of these points ?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |