StockCompare.java - public class StockCompare/Compares two...

This preview shows page 1 out of 1 page.

public class StockCompare //Compares two Stock objects { public static void main(String[] args) { Stock company1 = new Stock("XYZ", 9.62); Stock company2 = new Stock("XYZ", 9.62); //Using equals method to compare objects

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture