public static void main(String args[]){
        char str[][] = {{'a','b'},{'a','c'},{'b','d'},{'c','f'},{'b','e'},{'x','y'},{'y','z'}};
        
        PrintArrayInCustomizedFormat pac = new PrintArrayInCustomizedFormat();
        pac.print(str);
    }
http://www.geeksforgeeks.org/custom-tree-problem/
src/com/interview/recursion/PrintArrayInCustomizedFormat.java