removeDoubleNewLines method
void
removeDoubleNewLines()
Implementation
void removeDoubleNewLines() {
for (int i = 0; i < length; i++) {
if (this[i].trim().isEmpty &&
i + 1 != length &&
this[i + 1].trim().isEmpty) {
removeAt(i + 1);
i--;
}
}
return;
}