最最最最最最最基本的Trie词频统计应用了. package trie; import java.util.Scanner; public class Main { public static void main( String[] args ) { TrieTree tt = new TrieTree(); Scanner sc = new Scanner( System.in ); while(sc.hasNext()){ int n = sc.nextInt(); for(int i=0;…