The java file containing the Calculator class and all related methods
all methods have been specified as public as they are accessed by outside the class
Note: unlike groovy, each Java file needs to be re-compiled following any change made prior to re-running it
Groovy program that uses the methods in the Calculator class
The program has a menu with options for operations, each of which leverages a different method
Note: In order to be able to run, the groovy code needs to be compiled and then the class path to the main method of all the classes to be pasted in the console
A program with a single class which takes 2 integer arrays and copies one into the other
if the destination one is too small an error message is printed
If it's the same-the full contents of the source will be copied to the destinations
If destination is larger, the remaining positions will be filled with zeros
added 2 otehr size scenarios
a class which has a field of a bi-dimensional string and methods to create an object of this class which changes an element of the matrix, a row and an element and also which prints and converts to string
the Groovy  program which uses the Matrix.java class
symmetry class
program to use the MatrixChecker class
This is an enumerated type which specifies the possible values for the aircraft aim game
User must hit a flying target and then the user tries to find it by introducing 3 coordinates.
The system checks the result and gives directions to the user if he has missed the target
The target is a random position in a three-dimensional string which has been initialized to 1
Notes on implementation:
1. Ugly code needs to be re-factored, especially in the fire() method, where there are too many if cases
2. This is the first time I have used an exception,as there is not a single thing to return from the fire method, but rather the return is determined by the if cases
   I used a generic RunTimeException()
3. I used case switch to capture outcome at all different returns of the fire method
4. As advised by Vlad, I implemented a while loop, which would only stop asking the user for input if they have hit the target and answer n to "Do you want to play again?"
Thank you Vlad
added comments