jdbc exercise

Please review my solution