| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 710 人关注过本帖
标题:编程出错 [问题解决]
只看楼主 加入收藏
yxishe
Rank: 1
等 级:新手上路
帖 子:40
专家分:0
注 册:2008-11-30
收藏
 问题点数:0 回复次数:2 
编程出错 [问题解决]
import java.util.*;
public class String1 {
    public static void mian(String[] args)
    {
        Scanner sc = new Scanner (System.in);
        String str = new String();
        System.out.print("Enter a string:");
        str = sc.next();
        System.out.println("The length of the string is" + str.length());
        System.out.println("The character at position 3 is" + str.charAt(2));
        System.out.println("Characters 2 to 4 are" + str.substring(1,4));
        System.out.println(str.concat("was the string entered"));
        System.out.println("This is upper case:" + str.toUpperCase());
        System.out.println("This is lower case:" + str.toLowerCase());
    }

}
执行后显视IWAV0048I Java Bean String1 started with null constructor
请问什么原因?[]

[[it] 本帖最后由 yxishe 于 2008-12-4 22:45 编辑 [/it]]
搜索更多相关主题的帖子: 123 
2008-12-04 21:33
wuhuarong
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-12-4
收藏
得分:0 
你main写成mian了.....................
2008-12-05 11:43
东北de小草
Rank: 1
等 级:新手上路
威 望:1
帖 子:12
专家分:0
注 册:2008-12-6
收藏
得分:0 
呵呵  这都能写错!!!
  出错了 自己先检查,看书,在检查。别急一定可以查出来得 你用myeclipse 编写吧。哪里有语法错误直接就提示了
2008-12-06 15:12
快速回复:编程出错 [问题解决]
数据加载中...
 
   



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

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