question: private long convertToBytes ( int megaBytes ) { long bytes = megaBytes ; bytes = bytes * 1024 * 1024 ; return bytes ; }
target:  Takes an int which is supposed to be in megabytes and converts it to a long. This conversion takes into account that multiplication can lead to Integer.MAX_VALUE being exceeded