public class  Sept18V2
{
  public static void main (String args [])
  {
  
Stock stock1, stock2;
stock1 = new Stock("GMX", 55.3);
stock2 = new Stock("GMX", 55.3);
if (stock1.equals(stock2) )// This is a mistake.
  System.out.println("The objects are the same.");
else
  System.out.println("The objects are not the same.");
  }
 }