FileDocCategorySizeDatePackage
DivideByZero.javaAPI DocExample1039Thu Feb 14 13:58:50 GMT 2002myprojects.dividebyzero

DivideByZero

public class DivideByZero extends JFrame

Fields Summary
Constructors Summary
public DivideByZero()

		
    	System.out.println("example of divide by zero"+divide("42","10"));
    
Methods Summary
public doubledivide(java.lang.String numberHours, java.lang.String rate)

		double temp=0.0d;
		try {
			int num = Integer.parseInt(numberHours);
			int den = Integer.parseInt(rate);
			temp =  num/den;
			System.out.println("temp"+temp);
		}
		catch (Exception e){
			System.out.println("Generic exception catch"+e);
		}
		return temp;
	
public static voidmain(java.lang.String[] args)

   
      DivideByZero d = new DivideByZero();