20
Task
Java Collections,
level 10,
lesson 6
Locked
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.
20
Task
Java Collections,
level 10,
lesson 6
Locked
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.
GO TO FULL VERSION