Add a method: to the LispList interface of Exercise P16.9 that returns true if the list

Question:

Add a method:

image text in transcribed

to the LispList interface of Exercise •• P16.9 that returns true if the list contains an element that equals obj.

Data from exercise  P16.9 The LISP language, created in 1960, implements linked lists in a very elegant way.
You will explore a Java analog in this set of exercises. Conceptually, the tail of a list—
that is, the list with its head node removed—is also a list. The tail of that list is again a list, and so on, until you reach the empty list. Here is a Java interface for such a list:

image text in transcribed

image text in transcribed

image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: