link to exercise solution 1
link to exercise solution 2
JAVA PRACTICE