“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”Martin Fowler
Continuing with the refactoring from yesterday, today I will put all the calculation methods in a helper class.
This segregates the User model from its operations. Now
User.java will only be used for interchange of the user data as defined by the JSON.
For all the calculations, we will call the methods of the helper class
The architecture of the project is much neater now.