//https://www.hackerrank.com/challenges/matching-ending-items
public class Solution {    
  public static void main(String[] args) {
    Regex_Test tester = new Regex_Test();
    tester.checker("^[a-zA-Z]*s$");
  }
}

Create matching-ending-items.java