You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
454 B
18 lines
454 B
public class StockBroker{
|
|
public static void main(String[]args){
|
|
Stock s1 = new Stock();
|
|
Stock s2 = new Stock();
|
|
|
|
s1.name = "Oracle";
|
|
s1.symbol = "ORCL";
|
|
s1.openingPrice = 205.0;
|
|
s1.closingPrice = 203.0;
|
|
s2.name = "Microsoft";
|
|
s2.symbol = "MCST";
|
|
s2.openingPrice = 120.0;
|
|
s2.closingPrice = 125.0;
|
|
s1.printStockInfo();
|
|
System.out.println();
|
|
s2.printStockInfo();
|
|
}
|
|
}
|