@@ -0,0 +1,731 @@
+package Hardware;%0A%0Apublic class RAM %7B%0A%09%0A%09public String name;%0A%09public String companyName;%0A%09%0A%09public int price = 0;%0A%09public int totalRAM;%0A%09public int usedRAM = 0;%0A%09%0A%09public RAM(int totalRAM, String name, String companyName) %7B%0A%09%09this.name = name;%0A%09%09this.totalRAM = totalRAM;%0A%09%09this.companyName = companyName;%0A%09%7D%0A%09%0A%09/** Getters **/%0A%09%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%09%0A%09public int getTotalRam() %7B%0A%09%09return totalRAM;%0A%09%7D%0A%09%0A%09public int getUsedRAM() %7B%0A%09%09return usedRAM;%0A%09%7D%0A%09%0A%09/** Setters **/%0A%09%0A%09public void takeTotalRAM(int value) %7B%0A%09%09totalRAM -= value;%0A%09%7D%0A%09%0A%09public void addUsedRAM(int value) %7B%0A%09%09usedRAM += value;%0A%09%7D%0A%09%0A%09public void addPrice(int value) %7B%0A%09%09price += value;%0A%09%7D%0A%09%0A%09public void clearRam() %7B%0A%09%09usedRAM = 0;%0A%09%7D%0A%09%0A%7D%0A

Create RAM.java