为什么magpierunner不需要导入和调用magpie,而是直接使用它。import java.util.Scanner;
* A simple class to run the Magpie class.public class MagpieRunner2{
* Create a Magpie, give it user input, and print its replies. public staticvoid mai
,“omit2为”或“)它抛出此异常:Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 at Magpie.getResponse(Magpie.java:44)
at MagpieRunner.main(MagpieRunner.java