public void lineStartsAt(int charInFile){
  if (immutable) {
    throw new UnsupportedOperationException();
  }
  if (nLines == lineNums.length) {
    int[] newLineNums=new int[nLines * 2];
    System.arraycopy(lineNums,0,newLineNums,0,nLines);
    lineNums=newLineNums;
  }
  lineNums[nLines++]=charInFile;
  cachedCharInFile=-1;
}

public void lineStartsAt ( int charInFile ) { if ( immutable ) { throw new UnsupportedOperationException ( ) ; } if ( nLines == lineNums . length ) { int [ ] newLineNums = new int [ nLines * 2 ] ; System . arraycopy ( lineNums , 0 , newLineNums , 0 , nLines ) ; lineNums = newLineNums ; } lineNums [ nLines ++ ] = charInFile ; cachedCharInFile = - 1 ; }
add a line break .
