-6

Example:

Java is a set of several computer software
and specifications developed by Sun Microsystems,
("PROBLEM HOW DO I SKIP THIS SPACE BELOW?") 

later acquired by Oracle Corporation, that provides
a system for developing application software and
deploying it in a cross-platform computing environment.

I want to know how, using Java, you would ignore the blank lines in the iput file.

1 Answers1

4

It’s pseudo-code time! \o/

while (file is not read completely) {
    line = read a line from file;
    if (line is empty) {
        continue; // skip this line!
    }
    process line;
}
Bombe
  • 81,643
  • 20
  • 123
  • 127