这个输出为什么是1.0????
public class testc{
public long a(int b){
if(b==1){
return 1;
}
else{
return b*a(b-1);
}
}
public static void main(String[]
args){
testc t=new testc();
double x=0;
for(int i=1;i<=Integer.valueOf
(args[0]);i++){
x+=1/t.a(i);
}
System.out.println(x);
}
}