i keep getting the error Cannot resolve symbol 'MutableInteger. and the same on the getvalue() or setValue()

huangapple 未分类评论43阅读模式
英文:

i keep getting the error Cannot resolve symbol 'MutableInteger. and the same on the getvalue() or setValue()

问题

public static int LongestBubble(int[] Arr, int n){

    //引用传递的共享变量

    MutableInteger maxLength = new MutableInteger(0);// 此行出错

    getLongestBubbleLength(Arr, n, 0, -1, State.START, 0, maxLength);

    if (maxLength.getValue() < 3)// 此行出错
        return 0;

    return maxLength.getValue();// 此行出错
} // 结束 LongestBubble() 过程
英文:
public static int LongestBubble(int[] Arr, int n){

    //SHARED BY REFERENCE VARIABLE

    MutableInteger maxLength=new MutableInteger(0);// error on this line

    getLongestBubbleLength(Arr,n,0,-1,State.START,0,maxLength);

    if(maxLength.getValue()&lt;3)// error on this line
        return 0;

        return maxLength.getValue();// error on this line
} // end of procedure LongestBubble()

huangapple
  • 本文由 发表于 2020年4月9日 06:32:14
  • 转载请务必保留本文链接:https://java.coder-hub.com/61111093.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定