Hdoj/hdu 1161 Eddy ' s mistakes (uppercase converted to lowercase letters)

Source: Internet
Author: User

Problem Description
Eddy usually writes articles, but he likes mixing the Chinese letter uses, for example ' Computer Science ' is written frequ ently "Computer Science" by him, this mistakes lets Eddy ' s 中文版 teacher be extremely discontentment. Now that you have to write a procedure to being able in the Bob article 中文版 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, Blan K Space,numeral as well as each kind of punctuation
Composition, the writing length does not surpass-characters.

Output
For each test case, you should output a only line, after namely the result of transforms the lowercase.

Sample Input
WeLcOmE to Hdoj Acm 2005!

Sample Output
Welcome to HDOJ ACM 2005!

Well.. Water Problem ~ title, is to convert capital letters into lowercase letters.

import java.util.Scanner;publicclass Main{    publicstaticvoidmain(String[] args) {        Scanner sc =new Scanner(System.in);        while(sc.hasNext()){            String str =sc.nextLine();            System.out.println(str.toLowerCase());        }    }}

Hdoj/hdu 1161 Eddy ' s mistakes (uppercase converted to lowercase letters)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.