private static float bytesToMB(long bytes){
  float sizeInMB=(float)bytes / 1024f / 1024f;
  return sizeInMB;
}

private static float bytesToMB ( long bytes ) { float sizeInMB = ( float ) bytes / 1024f / 1024f ; return sizeInMB ; }
converts size in bytes to megabytes .
