Created
February 13, 2014 05:35
-
-
Save JorgeOlvera/8970277 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Convertanupper-caselettertoalowercaseletterandreturnthelower | |
//case letter. (Hint: Check first to be sure that it is not lower case already.) | |
import java.util.Scanner; | |
public class dacase { | |
public static void main(String[]args){ | |
Scanner input = new Scanner(System.in); | |
char a = input.nextln(); | |
char b = a.charAt(0); | |
char x = check(b); | |
System.out.println(x); | |
} | |
public static char check(char b){ | |
char b = b.toLowerCase; | |
return b; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment