Java Utililty Methods String Line Count

List of utility methods to do String Line Count

Description

The list of methods to do String Line Count are organized into topic(s).

Method

voidcountLineTypes(String line)
Count the line type.
if (line.matches(REGEX_DOC)) {
    numberOfLinesDoc++;
} else if (line.matches(REGEX_SPACES)) {
    numberOfLinesEmpty++;
} else {
    numberOfLinesCode++;
numberOfLines++;
...