Here you can find the source of byteToHumanreadable(long b)
public static String byteToHumanreadable(long b)
//package com.java2s; //License from project: Open Source License public class Main { public static String byteToHumanreadable(long b) { return (b / 1048576) + " MB"; }/*w w w .ja v a 2 s .c om*/ }