Question: Print out information about the complete portfolio, i . e . the information about all the stocks owned in the following order: Amazon, Apple, Facebook,

Print out information about the complete portfolio, i.e. the information about all the stocks owned in the following order: Amazon, Apple, Facebook, GE, GM and LinkedIn (hint: they each have a method that can print out their information).
This should be accomplished by calling the existing method that prints their information in the below format. Inspect Stock.java to find out which methods you can use!
Stock Name : Amazon
Stock Quantity : 10000
Stock Price : 500.0
Stock Name : Apple
Stock Quantity : 1000
Stock Price : 50.0
Stock Name : General Electric
Stock Quantity : 1001
Stock Price : 51.0
Stock Name : General Motors
Stock Quantity : 2001
Stock Price : 25.0
Stock Name : Facebook
Stock Quantity : 300
Stock Price : 75.0
Stock Name : LinkedIn
Stock Quantity : 500
Stock Price : 100.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!