File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "help on comment lines" Watch "help on comment lines" New topic
Author

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()) )
and
while ((line = br.readLine()) != null && !line.startsWith('//" )

i cant get the output plase help
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

[code]
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);
if(matcherCommand.find())
continue;

...
[code]

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.....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: help on comment lines