Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- Computer c = new Computer();
- c.addComponent(new RAM("Corsair 2x4GB"));
- c.addComponent(new RAM("Ballistic 2x4GB"));
- c.addComponent(new CPU("AMD RYZEN"));
- System.out.println(c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement