This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes help on comment lines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "help on comment lines" Watch "help on comment lines" New topic

help on comment lines

catherine matthews
Ranch Hand

Joined: Jan 22, 2006
Posts: 78

i can find the comment lines....from the readline.... how do i get rid of the comment lines?
i tried....
while ((line = br.readLine()) != null && !matcherClass.find()) )
while ((line = br.readLine()) != null && !line.startsWith('//" )

i cant get the output plase help
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

while ((line = br.readLine()) != null )
line = strings[i];
output += line + "\n";
instring = line;
matcherColon = patternColon.matcher(instring);
matcherClass = patternClass.matcher(instring);
matcherCommand = patternCommand.matcher(instring);


would be fine ?

[My Blog]
All roads lead to JavaRanch
catherine matthews
Ranch Hand

Joined: Jan 22, 2006
Posts: 78
yes it can be found.....
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: help on comment lines
It's not a secret anymore!