A simple program in Java which explores recurring functions.