Topic: 编译Java源文件出现这样的提示?? |
Print this page |
1.编译Java源文件出现这样的提示?? | Copy to clipboard |
Posted by: suprahan Posted on: 2008-06-05 21:15 在我编译Java源文件的时候,出现这样的提示,但是我却找不出源文件到底错在哪里? 代码如下: import java.util.*; class ArrayListTest { public static void main(String[] args) { ArrayList al= new ArrayList(); al.add("w"); al.add("ww"); al.add("www"); al.add("wwww"); for(int i=0;i<al.size();i++) { System.out.println(al.get); } } } 附件中的是cmd窗口中的错误提示。请教! 111.bmp (73.25k) |
2.Re:编译Java源文件出现这样的提示?? [Re: suprahan] | Copy to clipboard |
Posted by: xuxiaolei Posted on: 2008-06-05 21:47 建议还是用一个JAVA ide吧 可以帮助你解决不少问题 |
3.Re:编译Java源文件出现这样的提示?? [Re: suprahan] | Copy to clipboard |
Posted by: andy_wang_5 Posted on: 2008-06-06 10:22 jdk5.0 的新特性 ArrayList<String> al= new ArrayList<String>() |
4.Re:编译Java源文件出现这样的提示?? [Re: suprahan] | Copy to clipboard |
Posted by: loveapple Posted on: 2008-06-06 11:42 检查一下代码中有没有全角空格 |
5.Re:编译Java源文件出现这样的提示?? [Re: suprahan] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2008-06-06 15:44 The image shows me some unrecognized characters, have you not suspected why it happens? I guess there is a language incompatibility with your JDK and your operating system, have you downloaded a English version of JDK? PS: Except for the generics issue Andy pointed out, the source code is nothing wrong here. Regards, Jiafan |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |