This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Ignoring white space 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 this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Ignoring white space" Watch "Ignoring white space" New topic

Ignoring white space

roopkarthick manoharan

Joined: Dec 21, 2004
Posts: 1
I want to find the effective number of line in a .java file(excluding the comments and white spaces)

How to ignore the lines without any code(blank lines).
Joe Ess

Joined: Oct 29, 2001
Posts: 9154

This sounds like homework. Why don't you show us what work you've done so far and we can discuss it.

[How To Ask Questions On JavaRanch]
Don't get me started about those stupid light bulbs.
subject: Ignoring white space
It's not a secret anymore!