This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
You are never initialising the Point2D objects in your MyRectangle class. In your constructor (or in the declaration) you need to create new objects for these. For example, your method setBottomLeftPoint attempts to do something like null.setLocation(...).
OR, simply assign the Point2D objects that you are passing to your constructor to your instance variables.
liu hao
Greenhorn
Joined: Oct 02, 2009
Posts: 9
posted
0
a lot of thanks.It seems I didn't understand that staff thoroughly.