public static void intersection(int x[], int y[]) {
		System.out.print("First Array :\t");
		for (int element : x) {
			System.out.print(element + " ");
		}
		System.out.print("\nSecond Array :\t");
		for (int element : y) {
			System.out.print(element + " ");
		}
		System.out.print("\n");
		int len = 0;
		for (int i = 0; i < x.length; i++) {
			loop: for (int j = 0; j < y.length; j++) {
				if (x[i] == y[j]) {
					len++;
					break loop;
				}
			}
		}
		int z[] = new int[len];
		for (int i = 0, j = 0; j < y.length; j++) {
			loop: for (int k = 0; k < x.length; k++) {
				if (y[j] == x[k]) {
					z[i] = y[j];
					++i;
					break loop;
				}
			}
		}
		System.out.print("Intersection of the Arrays:\t");
		for (int element : z) {
			System.out.print(element + "  ");
		}
		System.out.println("\n");
	}