Last change
on this file since 208 was 208, checked in by Faria Nassiri Mofakham, 6 years ago |
It is an output update...
|
File size:
648 bytes
|
Line | |
---|
1 | package negotiator.onetomany;
|
---|
2 | /**
|
---|
3 | * Used to test the one-to-many negotiation framework
|
---|
4 | */
|
---|
5 | public class Tester
|
---|
6 | {
|
---|
7 | public static void main(String[] args)
|
---|
8 | {
|
---|
9 | System.out.println("Creating products...");
|
---|
10 | Product redProduct = new Product("Red");
|
---|
11 | Product greenProduct = new Product("Green");
|
---|
12 | Product blueProduct = new Product("Blue");
|
---|
13 |
|
---|
14 | System.out.println("Creating a portfolio...");
|
---|
15 | Portfolio portfolio = new Portfolio();
|
---|
16 | portfolio.addProduct(redProduct);
|
---|
17 | portfolio.addProduct(greenProduct);
|
---|
18 | portfolio.addProduct(blueProduct);
|
---|
19 |
|
---|
20 | System.out.println("The portfolio is the following: " + portfolio);
|
---|
21 | }
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.