满意答案
绿茶
推荐于 .10.07
采纳率:40%等级:8
已帮助:212人
public class CharTest {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("请输入字母:");
char c = in.next().charAt(0);
if (c >= A && c <= ) {
c += 32;
System.out.println("这里的大写" + (char) (c - 32) + "被转换成了" + c);
System.out.println("这里的大写" + (c - 32) + "被转换成了" + c)