Java examples added

Two Java examples were added,
One as executable and one of JUnit Test.