A clone of IFTTT in Java…