Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String generatePercentile(int rank, int numTotalRuns) {
        double percentile = 100 - ((double) rank / numTotalRuns) * 100;
        return String.format("%.2f", percentile);
    }
}