于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");
}
{
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");
}