Skip to content
Comparator Interface in Gridworld episode artwork

EPISODE · Nov 23, 2011

Comparator Interface in Gridworld

from APCS Java · host Chris Thiel

Here is a customized World for Gridworld where the message on the top is updated to show how many bugs there are and the location of the furthest Bug in the grid. You need to implement the Comparator interface for the grid world Bug class. You need to define a compare method that returns an int. Get the location of each Bug and use the compareTo method of Location. Here is the starter code: apcs.mathorama.com mpeg4 movie Quicktime movie

Episode metadata supplied by the publisher feed · Published Nov 23, 2011

Embed this episode

Ready to play

Comparator Interface in Gridworld

0:00 0:00

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

Frequently Asked Questions

When was this APCS Java episode published?

This episode was published on November 23, 2011.

Can I download this APCS Java episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!