Challenges ---Matrix Serach

How to input space separated inetgers , This is not clear

You have to take input normally as you do in every case.
int rows = scn.nextInt();
int[][] matrix = new int[rows][];
int cols = scn.nextInt();

	for (int row = 0; row < rows; row++) {
		matrix[row] = new int[cols];
		for (int col = 0; col < cols; col++) {
			matrix[row][col] = scn.nextInt();
		}
	}

Is your problem solved?