Simple Java Solution
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```java []\nclass Solution {\n    public int areaOfMaxDiagonal(int[][] dimensions) {\n        int n=dimensions.length;\n        double max=0;\n        int area=0;\n        for(int i=0;i<n;i++){\n            double  p=(double)dimensions[i][0];\n            double  q=(double)dimensions[i][1];\n            double  r=(double)((p*p)+(q*q));\n            double x=Math.sqrt(r);\n            System.out.println(x);\n            int y=(int)p*(int)q;\n            if(x>=max){\n                if(x==max){\n                    if(y>area){\n                        area=y;\n                    }\n                } else{\n                area=(int)p*(int)q;\n                }\n                max=x;\n            }\n        }\n        return area;\n    }\n}\n```
['Java']