Sending an email with a file attachment
Fix the implementation of the setAttachment method. This method must attach a file to the email. Hints: 1. Use version 1.4.7 of the JavaMail API library. 2. The email must have only one part (MimeBodyPart) with the file.
Points in a polygon
Suppose you're given a polygon defined by the coordinates of its vertices. The edges of the polygon don't intersect. You must implement the isPointInPolygon(Point point, List<Point> polygon) method, which will check whether the passed point is in the polygon.