[JAVA] easy solution 0ms
\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# 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 age = Integer.parseInt(s.substring(11, 13));\n          if(age > 60) count ++;\n      }  \n      return count;\n    }\n}\n```\n# PLEASE UPVOTE IF IT WAS HELPFULL
['Array', 'String', 'Java']