私はEclipseでフィボナッチ数列をコーディングしていますが、これが私のコードです-
public class FibonacciAlgorithm {
private int a = 0;
private int b = 1;
public FibonacciAlgorithm() {
}
public int increment() {
int temp = b;
b = a + b;
a = temp;
return value;
}
public int getValue() {
return b;
}
}
return value;
という行にエラーが表示されていますvalue cannot be resolved to a variable
。他のエラーは表示されません。