Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static String getForMartSize(int size, int num) {
double data = size / (1024 * 1024.00);
String result = String.format("%." + num + "f", data);
result = result + "M";
return result;
}
}