jimphei学习工作室

jimphei学习工作室

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  23 随笔 :: 0 文章 :: 1 评论 :: 0 Trackbacks

于java.lang包中,用于测试字母、数字等。

    public static void test4()
    
{
        
char[] teststr=new char[]{'H','E','L','L','O'};
        
if(Character.isUpperCase(teststr[2]))
        
{
            System.out.print(
"oh yes");
        }

        
else
            System.out.print(
"oh not");
    }


 

posted on 2009-03-18 17:21 jimphei 阅读(63) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: