code: public void print(long v)
    {
      if (v == 0x8000000000000000L) {
        print("-9223372036854775808");
        return;
      }
  
      if (v < 0) {
        write('-');
        v = -v;
      } else if (v == 0) {
        write('0');
        return;
      }
  
      int j = 31;
      
      while (v > 0) {
        _tempCharBuffer[--j] = (char) ((v % 10) + '0');
        v /= 10;
      }
  
      write(_tempCharBuffer, j, 31 - j);
    }
docs: Prints a long value.