HDOJ/HDU 1161 Eddy's mistakes(大写字母转换成小写字母)
2016-05-27 15:21
381 查看
Problem Description
Eddy usually writes articles ,but he likes mixing the English letter uses, for example “computer science” is written frequently “coMpUtEr scIeNce” by him, this mistakes lets Eddy’s English teacher be extremely discontentment.Now please you to write a procedure to be able in the Bob article English letter to turn completely the small letter.
Input
The input contains several test cases.each line consists a test case,Expressed Eddy writes in an article , by letter, blank space,numeral as well as each kind of punctuation
composition, the writing length does not surpass 1000 characters.
Output
For each test case, you should output an only line, after namely the result of transforms the lowercase letter.
Sample Input
weLcOmE tO HDOj Acm 2005!
Sample Output
welcome to hdoj acm 2005!
恩。。大水题~如题,就是把大写字母转换成小写字母。
Eddy usually writes articles ,but he likes mixing the English letter uses, for example “computer science” is written frequently “coMpUtEr scIeNce” by him, this mistakes lets Eddy’s English teacher be extremely discontentment.Now please you to write a procedure to be able in the Bob article English letter to turn completely the small letter.
Input
The input contains several test cases.each line consists a test case,Expressed Eddy writes in an article , by letter, blank space,numeral as well as each kind of punctuation
composition, the writing length does not surpass 1000 characters.
Output
For each test case, you should output an only line, after namely the result of transforms the lowercase letter.
Sample Input
weLcOmE tO HDOj Acm 2005!
Sample Output
welcome to hdoj acm 2005!
恩。。大水题~如题,就是把大写字母转换成小写字母。
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc =new Scanner(System.in); while(sc.hasNext()){ String str =sc.nextLine(); System.out.println(str.toLowerCase()); } } }
相关文章推荐
- 欢迎使用CSDN-markdown编辑器
- HDOJ/HDU 1161 Eddy's mistakes(大写字母转换成小写字母)
- 研究博客表的结构
- 8.9.10
- 适配器模式和php实现
- SVG transform坐标变换
- Java transient关键字
- Android学习系列(23)--App缓存管理
- CSDN 账户内的文章全部不见了
- 【EasyUI-datagrid数据展示+MongoDB数据操作】
- StudyFoxCMS-6
- js 进行数字运算
- Hadoop— ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 5 time(s).
- 《将博客搬至CSDN》
- MySQL使用给定顺序进行in查询
- 深入理解Java的接口和抽象类
- 一个CXF集成SPRING的WEBSERVICE完整实例
- SWIFT学习总结-----1
- Swift - 属性观察者(willSet与didSet)
- 常见的八种导致 APP 内存泄漏的问题