Dear Campbell Ritchie,
Thanks for your reply
Sorry to not explain in detail.
1. I am getting "news" from oracle XE
2. I was thinking that for counting the lines there may be three scenarios. (a) There must be empty lines
(b) There must be new lines e.g. user pressed two times inter for new para
(c) There must be Carriage return
All of these is shown by my
Java Servlet so I made a simple method to get the column News and start checking that how many empty lines + new lines + carriage returns and on these basis I tried to write this code.
Now the code is not throwing any error and working but not counting the lines as I was expecting keeping the above points
Thanks & best regards