| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1416 人关注过本帖
标题:[求助]Jcreator编写程序
取消只看楼主 加入收藏
闲人勿进
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2007-1-13
收藏
 问题点数:0 回复次数:1 
[求助]Jcreator编写程序

用Jcreator 4.0版本编写如下程序,但出现了问题。
public class Escape Sequences
{
public static void main(String args[])
{
System.out.println("Displaying single quotes:"+"\'A\'");
System.out.println("Displaying double quotes:"+"\"string\"");
System.out.println("Displaying a backslash:\\");
System.out.println("Text separate\t\tby two tabs");
System.out.println("Here is double\n\nspaced text");
System.out.println("**********\r#####");
}
}

问题如下:
C:\java exercise\Escape Sequences.java:1: 需要 '{'
public class Escape Sequences
^
1 错误

处理已完成。


--------------------配置: <--------------------
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image

处理已完成。

搜索更多相关主题的帖子: Jcreator println System 
2007-10-19 18:34
闲人勿进
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2007-1-13
收藏
得分:0 
试过了,还是不行。
2007-10-19 19:24
快速回复:[求助]Jcreator编写程序
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.074612 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved