Here you can find the source of displayMemory(String label, long bytes)
public static void displayMemory(String label, long bytes)
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt public class Main { public static void displayMemory(String label, long bytes) { long memoryKBytes = bytes / 1024; long memoryMBytes = memoryKBytes / 1024; System.out.println(label + " = " + bytes + " bytes, " + memoryKBytes + "KB, " //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + memoryMBytes + "MB"); //$NON-NLS-1$ }/* w w w . j a v a2 s . c o m*/ }