title: Problems comparing two object variables
body: <p>I am doing a lab for college where I have to compare Moneybags. initially I instantiate them and add money etc. etc.I already have MoneyBag mb0, and mb1,but now I have to compare them with this code...it cannot be changed.</p>
  
  <pre><code>mb0.compare(mb1);
  </code></pre>
  
  <p>The class is MoneyBag. I need to return "Is Less Than","Is equal to", or "is Greater Than."
  I currently have:</p>
  
  <pre><code>public int compare(MoneyBag mb1){
  } 
  </code></pre>
  
  <p>However, I cannot access mb0. I can access the int value of mb1. I need to compare them, print out the string literals, and obviously return the String. How would I do that? The top code cannot be changed, I have to make the second code work from it.</p>