Substring and parseInt
Code\n\npublic int countSeniors(String[] details) {\n    int res = 0;\n    for (String d : details) {\n        int age = Integer.parseInt(d.substring(11, 13));\
# Code\n```\npublic int countSeniors(String[] details) {\n    int res = 0;\n    for (String d : details) {\n        int age = Integer.parseInt(d.substring(11, 13));\n        if (age > 60) res++;\n    }\n    return res;\n}\n```
['Java']