首页
Java
登录
6mi
u
盘
搜
搜 索
Java
Java-蓝桥杯-算法训练P0103
Java-蓝桥杯-算法训练P0103
xiaoxiao
2021-02-28
5
题目
从键盘输入一个大写字母,要求改用小写字母输出。 输入
A
输出
a
代码
import java.util.Scanner;
public
class
Main {
public
static
void
main
(String[] args) { Scanner
in
=
new
Scanner(System.
in
);
char
a =
in
.nextLine().charAt(
0
); System.
out
.print((
char
)(a+
32
)); } }
转载请注明原文地址: https://www.6miu.com/read-2050067.html
技术
最新回复
(
0
)