need help with this java 2d ques

Printable View