Java program to display elementary cellular automata by their rules