Fix variable swapping code
Filed under ITC InfoTech
The question
Fix a provided Java code snippet meant to swap the values of two variables, which currently fails due to pass-by-value semantics.
No write-up yet. Related questions below have one.
Related ITC InfoTech questions
Collected from public candidate posts and coding forums. Updated Nov 2026.