previous
|
start
|
next
The
instanceof
Operator
Use
instanceof
for safe casts:
if (max instanceof Coin)
{
Coin maxCoin = (Coin)max;
. . .
}
previous
|
start
|
next