Java Simple Solution
Intuition\n Describe your first thoughts on how to solve this problem. \nThe problem is to count how many individuals in the given list are older than 60 years.
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\nThe problem is to count how many individuals in the given list are older than 60 years. Each individual\'s details are represented as a string, and the age information is embedded at specific positions in the string. We need to extract and check the age for each individual.\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\nInitialize a counter to zero.\nIterate over each string in the details array.\nExtract the characters representing the tens and ones place of the age from the string.\nConvert these characters to integers and compute the age.\nIf the computed age is greater than 60, increment the counter.\nReturn the counter after processing all strings.\n\n# Complexity\n- Time complexity: O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public int countSeniors(String[] details) {\n        int count = 0;\n        for (String s : details) {\n            int tens = s.charAt(11) - \'0\';\n            int ones = s.charAt(12) - \'0\';\n            int age = tens * 10 + ones;\n\n            if (age > 60) {\n                count++;\n            }\n        }\n        return count;\n    }\n}\n\n```
['Java']