title: How do I pass class objects as parameters in a method?
body: <p>I am new to Java. I have a Fruit class (name and price are my instance variables) and FruitBasket (3 instance variable of Fruit f1, f2, f3).</p>
  <p>I am trying to create a swap method that takes 3 Fruit objects as parameters. Please provide me with a a simple answer as this is an assignment.</p>