How do you retrieve the data written to a `ByteArrayOutputStream`?
You can retrieve the written data using the `toByteArray()` method, which returns a byte array containing all the data written to the stream.
Excellent! Youâ€™ve got it right. `toByteArray()` returns the data as a byte array.
Can you explain what happens if you call `toByteArray()` multiple times after writing new data to the stream?