Description: Create a Java windows application to manage a list of stocks
Add a class Stock with the following fields: companyName, pricePerShare, numberOfShares (currently owned) and commission (this is the percent you pay a financial company when you purchase or sell stocks.
Add constructor, getters and methods:
***purchaseShares (method that takes the number of shares purchased, updates the stock and return the cost of purchasing these shares make sure to include commission.
***sellShares (method that takes the number of shares to sell, updates the stock and return the $amount earned from the sell.
***getInvestmentAmount() is a method that returns the current value of your investments in that stock
Build the Frame layout design to allow a user to enter a stock, to save the stock to a file and to an arrayList as well.
When the program first start, check if the file exists and if so read all the stocks from the file and add them to the arrayList. add a button to display all the stocks to a JTable Add a necessary gui to purchase shares of the selected stock Add necessary gui to sell shares of the selected