I hope this is more readable.
Hi Experts,
My perl script reads every line in the java program. But i have a problem.
If it is something like
public void method1(String str1);
It is ok.. it reads the whole line in one shot.
But if i have something like
public void method1(String str1,
String str2);
Then it reads this sentence as two lines.
My requirement is i need to comment this line using java comments . Using my script now it happpens as
/*public void method1(String str1,*/
String str2);
Here the second line also has to be commented.
Is there any way by which i can solve this problem????????????
1)What i am doing is reading the file
2)iterating through each line.
3)check if the line starts with public
4)if so then comment that line
Zer, I hope u understood now. |