View difference between Paste ID: scdcEE73 and jjdP5vtF
SHOW: | | - or go back to the newest paste.
1
public class IntValue {
2
	public int value;
3
	
4
	public static void swap(IntValue i1, IntValue i2) {
5
		int temp = i1.value;
6
		i1.value = i2.value;
7-
		i2.value = temp.
7+
		i2.value = temp;
8
	}
9
}