How to find intersection values of two Arrays

This is the first solution to find the intersection of two Arrays of integers. This approach follows the core logic of comparing each of the first array with each of element of the second array. This program uses couple of StringBuilder’s class methods.

public class IntersectionOfArrays {

	//A method to display an array values in standard format
	private static void dispArray(int [] numArray) {

		System.out.println("The Array elements are");
		System.out.print("[ ");
		for (int i = 0; i < numArray.length; i++) {
			System.out.print(numArray[i] + " ");
		}
		System.out.println("]");
	}

	public static void main(String[] args) {

		int [] arrFirst = {5,2,9,12,1,4,73};
		int [] arrSecond = {9,1,2};
		boolean isAvailable = false;
		StringBuilder matchingNums=new StringBuilder("[");
		// Check each number of first array in the second array
		// Nested for loop to handle this logic
		for (int i=0;i<arrFirst.length;i++)
			for (int j=0;j<arrSecond.length;j++)
				if (arrFirst[i]==arrSecond[j]) {
					matchingNums.append(arrFirst[i]+", ");
					isAvailable=true;
				}
		dispArray(arrFirst);
		dispArray(arrSecond);
		if (isAvailable) {
			System.out.println("Intersection numbers from the above two arrays are");
			matchingNums.setCharAt(matchingNums.lastIndexOf(String.valueOf(',')), ']');
			System.out.println(matchingNums);
		}
		else {
			System.out.println("No common numbers in the given two arrays, hence output is empty");
			matchingNums.append("]");
			System.out.println(matchingNums);
		}
	}
}
Output1:
The Array elements are
[ 5 2 9 12 1 4 73 ]
The Array elements are
[ 9 1 2 ]
Intersection numbers from the above two arrays are
[2, 9, 1] 

Output2:
The Array elements are
[ 5 12 19 12 11 4 73 ]
The Array elements are
[ 9 1 2 ]
No common numbers in the given two arrays, hence output is empty
[]