Best Java Solution || Beats 100%
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        int recx1 = rec1[0]; \n        int recy1 = rec1[1];\n        int recx2 = rec1[2];\n        int recy2 = rec1[3];\n\n        int rec2x1 = rec2[0]; \n        int rec2y1 = rec2[1];\n        int rec2x2 = rec2[2];\n        int rec2y2 = rec2[3];\n\n        if(rec2x1 < recx2 && rec2y1 < recy2 && rec2x2 > recx1 && rec2y2 > recy1) return true;\n        \n        return false;\n    }\n}\n```
['Java']