for(FPTree childt: child) 的意思是吧FPTree类的所有child赋值给childt,!!!增强的for循环!!!
例如: String s=new ArrayList<String>();
s.add("FP-Growth is very hard");
s.add("But it‘s powerful");
for(string temps: s){
System.out.println(temps);}
输出结果为: FP-Growth is very hard
But it‘s powerful.
时间: 2024-10-30 04:41:11