/* Filename: ifError2.java * Description: This code contains errors and will be used to * practice debugging */ public class ifError2{ // main application entry point public static void main(String [] args){ // declare some variables and a Scanner int num1 = 0; int num2 = 0; int Quotient = 0; Scanner stdin = new Scanner(System.in); // prompt user for a numerator input and read in using Scanner System.out.println("Please enter a numerator: "); int num1 = stdin.nextInt(); // prompt user for a denominator input and read in using Scanner System.out.println("Please enter a denominator: "); int num2 = stdin.nextInt(); if(num2==0) System.out.println("Division by zerio is not possible."); System.out.println("Please run the program again."); System.out.println(" and enter a number besides zero"); else Quotient = num1/num2; System.out.println("The quotient of " + Num1); System.out.println(" divided by " + Num2 + " is "); System.out.println(Quotient); } }