Пример #1
0
 private int area(Rectangle r) {
   return r.getWidth() * r.getHeight();
 }