hai all,
can any one give me a solution for
string wrapping.actually my problem is.....
i have a string with,lets suppose some 30 characters(spaces included).i need to wrap the string at a maximum length of suppose 10 characters per line(spaces included)and if there is character at the 10th position of line it should wrap at the space before that
word.
can anyone givwe some solution to this....
here i am taking input from command line and i want to print the output on console.(i dont want to use swings and awts etc...).
thanks
raghu