Java Reference
In-Depth Information
15
.
Assume that the
ICharQ
interface shown in
Try This 8-1
has been in widespread use
for several years. Now, you want to add a method to it called
reset( )
, which will be
used to reset the queue to its empty, starting condition. Assuming JDK 8 or later, how
can this be accomplished without breaking preexisting code?