public void findCommon(int [] A, int [] B, int [] C){
		int i=0,j=0,k=0;
		while(i<A.length && j<B.length && k<C.length){
			if((A[i]==B[j])&& (B[j]==C[k])){
				System.out.print(A[i] + " ");
				i++;j++;k++;
			}else if((A[i]<=B[j])&& (A[i]<=C[k])){
				i++;
			}else if((B[j]<=A[i])&& (B[j]<=C[k])){
				j++;
			}else{
				k++;
			}
		}
	}