The language alone is particularly an item oriented programming language, so bears similarities to C++, C#.
Here is the next code in Java which is actually a modified Edition of your Java implementation found in https://abelurjl960792.targetblogs.com/profile