@@ -0,0 +1,334 @@
+//https://www.hackerrank.com/challenges/forward-references%0Apublic class Solution %7B    %0A  public static void main(String%5B%5D args) %7B%0A    Regex_Test tester = new Regex_Test();%0A    tester.checker(%22%5E(%5C%5C2tic%7C(tac))+$%22);%0A    %0A    //Works too but doesn't experiment with forward references%0A    //tester.checker(%22%5Etac(?:tac(?:tic)?)+$%22);%0A  %7D%0A%7D%0A

Create forward-references.java