Search:

Type: Posts; User: pbrockway2

Search: Search took 0.22 seconds.

  1. Replies
    3
    Views
    1,795

    Re: Array with long size

    You're welcome. Yes, grow sets newCapacity=oldCapacity<<1 and then checks that newCapacity has not "wrapped around" and become negative.
  2. Replies
    3
    Views
    1,795

    Re: Array with long size

    Have a look at the source code for ByteArrayOutputStream. It's located wherever you have Java installed in an archive called src.zip.

    write(byte[]) is actually an OutputStream method, but it...
Results 1 to 2 of 2