一道java捕获异常的题…求助高手!
public class HelloWorld2{ public static void main(String[] args){ int i=0; String[] greetings={"Hello World!","Hello!","HELLO WORLD!"}; while(i<4){ try{ System.out.println(greetings[i]); i++; }catch(ArrayIndexOutOfBoundsException e){} } } } 运行后程序无法跳出循环,没有办易做图常结束……