- teleport(String) - Method in class GreenMartian
-
Returns a string in this exact format:
- teleport(String) - Method in interface Teleporter
-
Implementing classes implement this method by returning a string that
represents the Martian
teleporting to dest
.
- Teleporter - Interface in prob1
-
This interface specifies that implementers must provide way to teleport to a destination.
- teleporters - Variable in class MartianManager
-
Stores Martian
instances that implement Teleporter
.
- tenacity - Variable in class RedMartian
-
RedMartian
s have an tenacity
which is simply an integer.
- toString() - Method in class GreenMartian
-
Returns a string in this exact format:
- toString() - Method in class Martian
-
Returns a string in this exact format:
- toString() - Method in class MartianManager
-
Returns a list of all the Martians
and Teleporters
in this exact format:
- toString() - Method in class RedMartian
-
Returns a string in this exact format: