private static int area(Size size){
  if (size == null) {
    return 0;
  }
  return size.width() * size.height();
}

private static int area ( Size size ) { if ( size == null ) { return 0 ; } return size . width ( ) * size . height ( ) ; }
get the area in pixels of a size .
