hello everyone i need big help....

i don't know how to use 'fibonacci' :(

our teacher asked us to make a program that will output how many possible siblings a certain animal can have,

for example if the user input 5 number of kangaroos, we're asked to make a program using fibonacci to output how many possible siblings a 5 kangaroos could have.... she gave us example but i could hardly understand that fibonacci:(

Code:

`import java.io.*;`

public class FibonacciNum {

public static void main (String[]args) throws IOException {

BufferedReader dataIN = new BufferedReader(new InputStreamReader(System.in));

System.out.println("Enter a number:");

int num = Integer.parseInt(dataIN.readLine());

fibonacci(num - 2) + fabonacci(num-1);

}

}

i really don't know what to do, i can't even explain these codes i wrote :( :(

can someone help me please?

thank you very much

EDIT:

by the way she gave us this formula:

fibonacci(n-2)+fibonacci(n-1)

fibonacci n = 1

fibonacci o = o