For me to create sample code would mean I would have to actually study that tutorial I pointed you to.... which would not help you learn or me pass my certification.
However, one bit of advice: if you are new to Java (haven't coded any sizeable program), this is probably not the best starting point. Anyways, good luck.