public void printMatrix(int [][]matrix){
		for(int i=0; i < matrix.length; i++){
			int start =i;
			int end =0;
			while(start >= 0 && end < matrix[0].length){
				System.out.print(matrix[start][end] + " ");
				start--;
				end++;
			}
			System.out.print("\n");
		}
		
		for(int i=1; i < matrix[0].length; i++){
			int start = matrix.length-1;
			int end =i;
			while(start >= 0 && end < matrix[0].length){
				System.out.print(matrix[start][end] + " ");
				start--;
				end++;
			}
			System.out.print("\n");
		}
	}
http://www.geeksforgeeks.org/print-matrix-diagonally/
src/com/interview/multiarray/MatrixInDiagonalOrder.java