//test.java
import java.io.*;
class test
{
public static void main(String srgs[]) throws Exception
{
char charArr[];
String str;BufferedReader buf;
buf =new BufferedReader(new InputStreamReader(System.in));
System.out.print("请输入小写字母按回车:");
str=buf.readLine();
charArr=str.toCharArray();
//检查字符串大小写
if(charArr[0]>'z'||charArr[0]<'a')
System.out.println("error");
else
{
str=str.toUpperCase();
System.out.println("大写字母为"+str);
}
}
}