배열과 스왑(swap)기법
//두 문자 서로 바꾸기
public class Exam_03 {
	public static void main(String[] args) {
		char[] A = new char[2];
		char tmp;
		A[0]='A';
		A[1]='B';
		System.out.println(""+A[0]+A[1]);
		tmp=A[0];
		A[0]=A[1];
		A[1]=tmp;
		System.out.println(""+A[0]+A[1]);
	}
}