已经解决!
程序代码:
package ai; import class wo { public static void main(String[] args) { String[] stringArray; stringArray = new String[3]; int i; for (i = 0; i < stringArray.length; i) { System.out.println("Please input data for stringArray ["i "]"); try { BufferedReader in = new BufferedReader(new InputStreamReader( System.in)); stringArray[i] = in.readLine(); } catch (IOException e) { e.printStackTrace(); } } int j; for (j = 0; j < stringArray.length; j) { System.out.println(stringArray[j]); } } }
从键盘中输入字符串然后赋给 数组,但i和j还是报错了,请大家帮我分析下好吗??
[[it] 本帖最后由 hanzhu3366 于 2008-4-22 11:49 编辑 [/it]]