// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class MM {
    public static void main(String[] args) {
        try {
            int n = Integer.parseInt(args[0]);
            System.out.println(n + " MB");
            byte[] b = new byte[n*1024*1024];
            System.out.println("It works");
        } catch(Throwable t) {
            System.out.println(t);
        }
    }
}
