void (GlobalMemory memory) { info.add("Physical Memory: \n " + memory.toString()); VirtualMemory vm = memory.getVirtualMemory(); info.add("Virtual Memory: \n " + vm.toString()); List<PhysicalMemory> pmList = memory.getPhysicalMemory(); if (!pmList.isEmpty()) { info.add("Physical Memory: "); for (PhysicalMemory pm : pmList) { info.add(" " + pm.toString()); } } }