Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1.     public static void main(String[] args) {
  2.         Computer c = new Computer();
  3.         c.addComponent(new RAM("Corsair 2x4GB"));
  4.         c.addComponent(new RAM("Ballistic 2x4GB"));
  5.         c.addComponent(new CPU("AMD RYZEN"));
  6.        
  7.         System.out.println(c);
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement