DEV Community

loading...

Discussion on: Effective Java Tuesday! Consider Implementing `Comparable`

Collapse
w3aponx profile image
Mario Cormier

There's a small mistake in your example code. All comparisons should read:

if (result == 0) {