Java Reference
In-Depth Information
it is created. Keep all other members of the
Stack
class private. (Hint: You can use
the
Queue
class as a model; just change the way the data is accessed.)
write a method called
swap( )
that exchanges the contents of the objects referred to
by two
Test
object references.
variable?
er must be used?
11
. The name of a method plus its parameter list constitutes the method's
_______________.
return the result. Demonstrate its use.