public class SwapTwoNumbers {
public static void main(String[] args) {
int x = 5, y = 10;
x = x ^ y ^ (y = x);
System.out.println("x = " + x);
System.out.println("y = " + y);
}
}
1990: The Bronx Warriors (1982)
2 months ago
public class SwapTwoNumbers {
public static void main(String[] args) {
int x = 5, y = 10;
x = x ^ y ^ (y = x);
System.out.println("x = " + x);
System.out.println("y = " + y);
}
}