Here you can find the source of divide(String ts, String ms)
public static Double divide(String ts, String ms)
//package com.java2s; /*//from www .ja v a 2 s .c o m * Copyright (C) 2010 Viettel Telecom. All rights reserved. * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ public class Main { public static Double divide(String ts, String ms) { if ("0".equals(ms)) { return 0D; } else { return Double.parseDouble(ts) / Double.parseDouble(ms); } } }