求助!!!!!
public class HelloWorld { public static void main(String[] args) { String [] hobbys=new String [2]; String[] hobbys = { "sports", "game", "movie" }; System.out.println("循环输出数组中元素的值:"); for(int i=0;i<=hobbys.length;i++){ System.out.println(hobbys[i]);} } } 这是什么问题?运行总是出错