Package it.unimi.di.prog2.h13
Class PortafoglioAzionarioClient
java.lang.Object
it.unimi.di.prog2.h13.PortafoglioAzionarioClient
A class to test some methods of
PortafoglioAzionario
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
A method testing some methods ofPortafoglioAzionario
.
-
Constructor Details
-
PortafoglioAzionarioClient
private PortafoglioAzionarioClient().
-
-
Method Details
-
main
A method testing some methods ofPortafoglioAzionario
.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.
?
command in the standard output.- Parameters:
args
- not used.
-