Chapter 6 Exercise - Factoring of integers:
Write a program that asks the user for an integer and then prints out all its factors.

Write two classes: FactorGenerator and FactorPrinter.
FactorGenerator class:
You will have two integer instance variables in FactorGenerator, one is num2factor, the other is factor.
The constructor takes only one parameter of the number to be factored from caller and assign the beginning factor as 2.
There is a method called hasMoreFactors,
which will check whether the number to be factored has more factors or not.
(return data type is boolean)
You will check factors starting from 2, 3, 4, 5, ... until the number to be
factored.
How do you know A is factor of B? That is, B is multiple of A.
Please use remainder operator % concept to check it.
There is another method, called nextFactor. This will return a new factor to caller.
FactorPrinter class:
Write a main function to take user's number and use a while loop
to check whether there is more factor for user's number.
If yes, print the factor. otherwise, stop the program.