Convert size in byte to human readable string using Java

1
2
public static String byteToHumanReadableSize(long size) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Simple snippet that converts size in byte to human readable string using Java.

#byte #size #terabyte #gigabyte #megabyte #kilobyte #DecimalFormat

#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.