Hi i know to take a series of string from command line??
i know to take it with args[0],args[1] but how to take it has a whole??
i mean if i enter "I AM LEARNING JAVA" in the command line
i want to count the number of times "I" repeats in the sentence so i can't take args[0],args[1]... so how do i take this full sentence as a single thing in my program?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35253
7
posted
0
By enclosing it in double quotes, like this:
Then it'll all end up in args[0] - without the quotes.