1 Matching Annotations
  1. May 2019
    1. import java.util.Scanner;

      /**

      • A simple class to run the Magpie class.
      • @author Laurie White
      • @version 6 March 2012 */ public class MagpieRunner2 {

        /**

        • Create a Magpie, give it user input, and print its replies. */ public static void main(String[] args) { Magpie2 maggie = new Magpie2();

          System.out.println (maggie.getGreeting()); Scanner in = new Scanner (System.in); String statement = in.nextLine();

          while (!statement.equals("Bye")) {

           System.out.println (maggie.getResponse(statement));
           statement = in.nextLine();
          

          } }

      }