Skip to content

Instantly share code, notes, and snippets.

@Ralireza
Created April 17, 2020 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ralireza/16a9096254fb3c2bc769916d597da01b to your computer and use it in GitHub Desktop.
Save Ralireza/16a9096254fb3c2bc769916d597da01b to your computer and use it in GitHub Desktop.
private void measureLine(String line) {
lineCount++;
int lineSize = line.length();
totalChars += lineSize;
lineWidthHistogram.addLine(lineSize, lineCount);
recordWidestLine(lineSize);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment