Beginners Solution
\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
\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 data: details){\n            // System.out.println(data.substring(11,13));\n            int age= Integer.parseInt(data.substring(11,13));\n            if(age>60) count++;\n        }\n        return count;\n    }\n}\n```
['Java']