Here you can find the source of div(String second, String first)
private static String div(String second, String first)
//package com.java2s; //License from project: Open Source License public class Main { private static String div(String second, String first) { try {/*ww w . j av a 2 s . c om*/ return String.valueOf(Integer.parseInt(first) / Integer.parseInt(second)); } catch (NumberFormatException e) { try { return String.valueOf(Double.parseDouble(first) / Double.parseDouble(second)); } catch (NumberFormatException e2) { throw new IllegalArgumentException(first + " / " + second); } } } }