//******************************************************************** // labquiz4.java Author: Brenneman and >>> YOUR NAME !!! <<< // // Driver to test the use of BaseballCard class. //******************************************************************** import cs1.Keyboard; public class labquiz4 { //----------------------------------------------------------------- // Instantiates 3 baseball cards //----------------------------------------------------------------- public static void main (String[] args) { // -- sets up a new baseball card ------------------------------ BaseballCard card1 = new BaseballCard("Pete Rose", "Cincinnati Reds", 1978, "MINT", 5.50); BaseballCard card2 = new BaseballCard("Willie Stargell", "Pittsburgh Pirates", 1979, "EXCELLENT", 7.75); BaseballCard card3 = new BaseballCard("Willie Stargell", "Pittsburgh PIRATES", 1979, "FAIR", 2.50); //************************************************************** // // TEST TO SEE IF CARD1 IS THE SAME AS CARD2. OUTPUT APPROPRIATE MESSAGE. // // Two baseball cards are the same if they have the same player, team, and year. // //************************************************************** //************************************************************** // // TEST TO SEE IF CARD2 IS THE SAME AS CARD3. OUTPUT APPROPRIATE MESSAGE. // //************************************************************** } // end main } // end class