import java.util.ArrayList;import java.util.List;import java.util.Scanner;// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,// then press Enter. You can now see whitespace characters in your code.class Node { // 父亲编号 public int parval; public boolean i...