Clear Java Code x 2
\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        int left = Math.max(rec1[0], rec2[0]);\n        int right= Math.min(rec1[2], rec2[2])
```\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        int left = Math.max(rec1[0], rec2[0]);\n        int right= Math.min(rec1[2], rec2[2]);\n        int top = Math.min(rec1[3], rec2[3]);\n        int bottom = Math.max(rec1[1], rec2[1]);\n        return (right > left) && (top > bottom);\n    }\n```\n\n```\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        return !(rec1[1] >= rec2[3] // higher\n                || rec1[3] <= rec2[1] // lower\n                || rec1[2] <= rec2[0] // lefter\n                || rec1[0] >= rec2[2]);// righter\n    }\n```
[]