Using Java Servlet we check if point are in figure or not.