fixed code
changes
Changed the code which works with main method into comments and now
testing the code with junit test cases
Finally, Junit is up and running. Test 1 passed. 

Changelog: 

The imports which are default doesn't contain the method
"assertArrrayEquals" which in this case is required to check the two
arrays. 

Added the import "import static org.junit.Assert.*;"
changed JRE version to Java SE 8