Description of program highlighting language features This program allows the user to enter an equation and the program will return the value the equation w ould equal as a polynomial. This program used a lot of print statements in order to debug the program. This program highlights the dynamic language features that Groovy has such as the key word def. The default parameter in groovy is a string so in this program, the coder needs to convert the parameter using the built in function, .toInteger().
Description of interesting language facet #2 In Groovy, objects are used for almost everything. Due to the fact that Groovy uses objects, Groovy automatically will wrap the types of variables in the code. Something that is worth mentioning is boxing and unboxing. When the coder is converting a primitive data type to an object it is called unboxing. Likewise, when the coder is converting an object to a primitive data type. For clarification purposes, there are eight primitive types which are boolean , byte , char , short , int , long , float and double. In Java, widening is done before boxing is done. Widening is defined as taking a small primitive type value and is automatically accommodated in a bigger primitive data type. The first method is the method that Java prioritizes because it does widening rather than boxing. However, for Groovy, the second method would be the method that would be called because no matter what c...