java中输入两个点,java中给定两个长方形的中心点、长度、宽度,怎么判断他们是包含关系还是相交关系,怎么编写代码,想了很久…...
Java codeimport java.awt.Point;public class Main {public static void main(String args[]){RectangeDemo r1 = new RectangeDemo(new Point(1,2),5,5);RectangeDemo r2 = new RectangeDemo(new Point(10,8),5,5);...