Here you can find the source of divideBy(Number number1, Number number2)
public static double divideBy(Number number1, Number number2)
//package com.java2s; //License from project: Apache License public class Main { public static double divideBy(Number number1, Number number2) { double n1 = 0; double n2 = 0; if (number1 != null) { n1 = number1.doubleValue();/*from w ww . j a v a2 s.c o m*/ } if (number2 != null) { n2 = number2.doubleValue(); } return n1 / n2; } }