Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestProduct {
- public static void main(String[] args) {
- Product p1 = new Product("Xbox", 13, 18, 1, "Games");
- String[] hobbies = { "Games", "TV", "Movies" };
- Customer c3 = new Customer(212654321, "Elad", 16, 1, hobbies);
- if (p1.isRelevant(c3))
- System.out.println(p1);
- String[] a = new String[3];
- a[0] = "football";
- a[1] = "chess";
- a[2] = "reading books";
- Customer c1 = new Customer(57852451, "Itamar", 10, 1, a);
- Customer c2 = c1;
- c2.setId(55253876);
- System.out.println(c1);
- System.out.println(c2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement