Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Exchanging Values Of Two Variables

DZone's Guide to

Exchanging Values Of Two Variables

·
Free Resource
No need to use temp var.

a, b = b, a
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}