swap variables without temp
import java.*;
class noTemp {
public static void main(String a[])
{
int x = 10;
int y = 5;
x = x + y;
y = x - y;
x = x - y;
System.out.println(x , y);
}
}