code: final public void print(long v)
    {
      Writer out = this.out;
      if (out == null)
        return;
      
      if (v == 0x8000000000000000L) {
        print("-9223372036854775808");
        return;
      }
  
      try {
        if (v < 0) {
          out.write('-');
          v = -v;
        } else if (v == 0) {
          out.write('0');
          return;
        }
  
        int j = 31;
      
        while (v > 0) {
          _tempCharBuffer[--j] = (char) ((v % 10) + '0');
          v /= 10;
        }
  
        out.write(_tempCharBuffer, j, 31 - j);
      } catch (IOException e) {
        log.log(Level.FINE, e.toString(), e);
      }
    }
docs: Prints a long.