快捷导航

运行问题,请教一下

public class Fab {
        public static void main(String[] args) {                             //系统一直提示这里出问题,没弄明白
               
        System.out.print(f(5));       
        }
    public static Long f(int index){
    if(index==1 ||index==2){
                    return 1;
   }
    }
     Long f1=1L;
    Long f2=1L;
    Long f=0 ;

    for(int i;i

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员1

已解决,谢谢
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP