/** DemoDivByZero is a demonstration of what happens when you divide by zero. @author P.Conrad @version 01.17.2012 CS56 W12 */ class DemoDivByZero { public static void main(String [] args) { int x=3; int y=0; int z=x/y; System.out.println("x=" + x + " y=" + y + " z= " + z); } }