Topic: 求助 (cannot resolve symbol) |
Print this page |
1.求助 (cannot resolve symbol) | Copy to clipboard |
Posted by: wangxiangju_y Posted on: 2004-12-03 23:13 感谢上次前辈的指导。 请教: 出现以下编译错误信息,怎么解决? UnicodeTest.java:4: cannot resolve symbol symbol : class string location: class UnicodeTest public static void main(string[] args) ^ 源程序 import java.io.*; public class UnicodeTest { public static void main(string[] args) { OutputStreamWriter osw=null; try { osw=new OutputStreamWriter(new FileOutputStream("c:/test"),"Unicode"); } catch(FileNotFoundException ex) { System.out.println(ex); } catch(UnsupportedEncodingException ex) { System.out.println(ex); } try { osw.write("\u00A9\u00BD\u0391\u0392\u0393\u0394\u00f8"); osw.flush(); } catch(IOException ex) { System.out.println(ex); } } } |
2.Re:求助 [Re: wangxiangju_y] | Copy to clipboard |
Posted by: bluepure Posted on: 2004-12-04 00:38 string[] args --> String[] args 注意大小写。 |
3.Re:求助 [Re: bluepure] | Copy to clipboard |
Posted by: wangxiangju_y Posted on: 2004-12-04 13:03 多谢 |
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 |