File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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 agree. Here's the link:
subject: help on comment lines