Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

public class Main {
    /**
     * DOC bZhou Comment method "computePercent".
     * 
     * @param userCount
     * @param count
     * @return
     */
    private static String computePercent(double userCount, double count) {
        double result = userCount / count;
        return result != Double.NaN ? String.valueOf(result) : null;
    }
}