Here you can find the source of bytesToMBString(long bytes)
public static String bytesToMBString(long bytes)
//package com.java2s; //License from project: Open Source License public class Main { public static String bytesToMBString(long bytes) { return bytesToMB(bytes) + " MB"; }//ww w .j a v a2 s . c om public static long bytesToMB(long bytes) { return bytes / 1048576; } }