Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
public
class
SwapExample
{
private
static
void
swap
(
Object
a,
Object
b
)
{
Object
temp
=
a
;
a
=
b
;
b
=
temp
;
}
public
static
void
main
(
String
[
]
args
)
{
Integer
a
=
5
;
Integer
b
=
10
;
swap
(
a, b
)
;
System
.
out
.
println
(
"a: "
+
a
+
"
\n
b: "
+
b
)
;
}
}