Class PortafoglioAzionarioClient

java.lang.Object
it.unimi.di.prog2.h13.PortafoglioAzionarioClient

public class PortafoglioAzionarioClient extends Object
A class to test some methods of PortafoglioAzionario.
  • Constructor Details

    • PortafoglioAzionarioClient

      private PortafoglioAzionarioClient()
      .
  • Method Details

    • main

      public static void main(String[] args)
      A method testing some methods of PortafoglioAzionario.

      This method reads a sequence of commands from the standard input and executes them on a PortafoglioAzionario object. The commands are:

      • + società prezzo quantità to add a new action to the portfolio;
      • - società quantità to remove the given number of actions of a given company;
      • ? to print the total value of the portfolio.
      and executes them, emitting the result of the ? command in the standard output.
      Parameters:
      args - not used.