public static ArrayListPrintFromTopToBottom(TreeNode root) { ArrayList array = new ArrayList(); if (root == null) return null; Queue nodes = new LinkedList(); nodes.offer(root); while (nodes.size() > 0) { ...