Java Integer Divide div(int a, int b)

Here you can find the source of div(int a, int b)

Description

div

License

Open Source License

Declaration

public static int div(int a, int b) 

Method Source Code

//package com.java2s;

public class Main {
    public static int div(int a, int b) {
        if (b != 0) {
            return a / b;
        } else//  www. j a  v a 2  s. co  m
            throw new ArithmeticException("Divisor is Zero");

    }
}

Related

  1. div(int a, int b)
  2. div(int a, int b)
  3. div(int dividend, int divisor)
  4. div(int val, int coe)
  5. divce(long size, long divider, int i)
  6. divCeil(int a, int b)