3009374_PR1/Exchange.java

12 lines
292 B
Java
Raw Normal View History

2023-10-17 21:15:19 +02:00
public class Exchange {
public static void main(String[] args) {
int a = 1234;
int b = 99;
int t = a;
a = b;
b = t;
System.out.println("a = " + a); // a = 99
System.out.println("b = " + b); // b = 1234
}
}