2 ms·
Your swap() method violates the liskov substitution principle. If Java had pass-by-reference, you could write one that doesn't.
by adrianmonk 9y ago
Your swap() method violates the liskov substitution principle.
If Java had pass-by-reference, you could write one that doesn't.