Study Display 5.2. Using static variables and static methods to implement the class Fibonacci such that the first call to Fibonacci.next() returns 2, the second returns 3, and then 5, and so on.
Design a method that can compute the vector inner product. You must define Vector class in the first place. Write a demo program to verify your program works. You should use constructors to initialize the two vectors.
Hint: The inner product is not a vector. It is a number