create swap function in java code example
Example: swapping values in java using a function not working
#include <stdio.h>
int main() {
int a = 23, b = 47;
int t;
printf("Before. a: %d, b: %d\n", a, b);
t = a;
a = b;
b = t;
printf("After. a: %d, b: %d\n", a, b);
return 0;
}