📅  最后修改于: 2022-03-11 14:55:43.038000             🧑  作者: Mango
private static void calcola(int i , functionfn){
int r = 0 ;
for (int j = i ; j>0 ; j--) r = fn.apply(r);
System.out.println(r);
}
calcola (9 , (p) -> {
return p + 1;});