Currently I am working on a task, where I should prompt the user to input a number from the console (e.g. 1) and then:

* First two elements of ArrayList are the input number(1);
* Every next element at the ArrayList is equal to sum of previous two;
* Print the ArrayList.

Here is my trainee code:) :

```
public class ex3 {
public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    System.out.println("Enter a number :");
    int number = sc.nextInt();

    List<Integer>numbersList = new ArrayList<>();
    numbersList.add(number);
    numbersList.add(number);

    int k = 0,a = number,b = number;
    for(k=0;k<=10;k++) {
        k = a + b;
        System.out.println(k + " ");
        a=b;
        b=k;
    }
  }
}

```

I see that obviously I have not put the fibonacci series into the ArrayList.