Sanjana Sharma wrote:Prem Sir, you just hit the target !
i found the answer .
thanks a bunch everyone .
i love this place
Taking your question 1 step further. How do i enter a string with spaces in it as one string and not separate strings ? For example : welcome to java is 1 string and not 3. It is followed by rahul bose which is another string. ie args contains only 2 strings.