Topic: 请问以哪中 code page 方式保存java 文件,才能顺利编译运行?

  Print this page

1.请问以哪中 code page 方式保存java 文件,才能顺利编译运行? Copy to clipboard
Posted by: potomac
Posted on: 2004-02-22 14:17

? 号代欧元符号。
TIA

class Unicode {
public static void main(String[] args) {

float ? = "Euro";
System.out.println("?" + ? );

}
}

2.Re:请问以哪中 code page 方式保存java 文件,才能顺利编译运行? [Re: potomac] Copy to clipboard
Posted by: newnewworm
Posted on: 2004-02-23 18:11

?是不能作为变量声明的!


   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