/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int VarA;
int VarB;
int Aux;
System.
out.
println("Digite a Primeira Variavel");
Scanner Lera
= new Scanner
(System.
in); VarA= Lera.nextInt();
System.
out.
println("Digite a Primeira Variavel"); VarB= Lera.nextInt();
System.
out.
println("O valor de A é: " +VarA
); System.
out.
println("O valor de B é: " +VarB
);
Aux=VarA;
VarA=VarB;
VarB=Aux;
System.
out.
println("O novo valor de A é: " +VarA
); System.
out.
println("O novo valor de B é: " +VarB
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWludCBWYXJBOwoJCWludCBWYXJCOwoJCWludCBBdXg7CgoJCSBTeXN0ZW0ub3V0LnByaW50bG4oIkRpZ2l0ZSBhIFByaW1laXJhIFZhcmlhdmVsIik7CgoJCVNjYW5uZXIgTGVyYSA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJIFZhckE9IExlcmEubmV4dEludCgpOwoKCQlTeXN0ZW0ub3V0LnByaW50bG4oIkRpZ2l0ZSBhIFByaW1laXJhIFZhcmlhdmVsIik7CgkJIFZhckI9IExlcmEubmV4dEludCgpOwoJCSAKCQlTeXN0ZW0ub3V0LnByaW50bG4oIk8gdmFsb3IgZGUgQSDDqTogIiArVmFyQSk7CgkJU3lzdGVtLm91dC5wcmludGxuKCJPIHZhbG9yIGRlIEIgw6k6ICIgK1ZhckIpOwogICAgIAoJCUF1eD1WYXJBOwoJCVZhckE9VmFyQjsKCQlWYXJCPUF1eDsKCQoJCVN5c3RlbS5vdXQucHJpbnRsbigiTyBub3ZvIHZhbG9yIGRlIEEgw6k6ICIgK1ZhckEpOwoJCVN5c3RlbS5vdXQucHJpbnRsbigiTyBub3ZvIHZhbG9yIGRlIEIgw6k6ICIgK1ZhckIpOwoJfQp9