It is a basic sequence that display or get a output of 1 1 2 3 5 8 it is a sequence that the sum of previous number the current number will be display next.
Try to watch thislink below Java Recursive Fibonacci sequence Tutorial reference:
public static long getFibonacci(int number){
if(number<=1) return number;
else return getFibonacci(number-1) + getFibonacci(number-2);
}
Click Here Spring TutorialsWatch Java Recursive Fibonacci sequence Tutorial for spoon feeding