Here you can find the source of intersects(Area a, Area b)
public static boolean intersects(Area a, Area b)
//package com.java2s; //License from project: Open Source License import java.awt.geom.*; public class Main { public static boolean intersects(Area a, Area b) { Area a2 = (Area) a.clone(); a2.intersect(b);/* w ww . java 2s . co m*/ return !a2.isEmpty(); } }