jQuery in Action, 3rd edition
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 REST with Spring (video course) this week in the Spring 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.....
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: help on comment lines
It's not a secret anymore!