/**
* 显示多颗树的所有节点的信息
*
* @param departmentList
*/
private void showTreeList(Collection<Department>departmentList) {
for (Department top : departmentList) {
// 顶点
System.out.println(top.getName());
// 子树
showTreeList(top.getChildren());
}
}

相关文章:

  • 2021-05-21
  • 2022-12-23
  • 2021-06-20
  • 2021-05-26
  • 2022-03-06
  • 2021-09-20
  • 2021-10-18
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-07-15
  • 2022-01-09
相关资源
相似解决方案