code: private static void printComments(String comment) {
      int index = 0;
      int nextIndex = 154;
      while(index < comment.length()) {
        nextIndex = nextIndex <= comment.length() ? nextIndex : comment.length();
        String commentSegment = comment.substring(index, nextIndex);
        int lastSpace = commentSegment.lastIndexOf(' ');
        int lastNewLine = commentSegment.indexOf('\n');
        char lastChar = ' ';
        if(nextIndex < comment.length() ) {
          lastChar = comment.charAt(nextIndex);
        }
        if(lastNewLine > 0) {
          nextIndex = index + lastNewLine;
          commentSegment = comment.substring(index, nextIndex);
        } else
        if(Character.isWhitespace(lastChar)) {
          
        } else
        if(lastSpace > 0) {
          nextIndex = index + lastSpace;
          commentSegment = comment.substring(index, nextIndex);
        }
        System.out.println("  " + commentSegment);
        index = nextIndex;
        if(lastNewLine > 0 || lastSpace > 0) {
          index++;
        }
        nextIndex = index + 154;
      }
    }
docs: Helper method to format comments to standard out.
  
  @param comment