Divide By Zero Exception In Java Flow Diagram