Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args){
- String first,second;
- Scanner input = new Scanner(System.in);
- System.out.print("Enter First String: ");
- first = input.nextLine();
- System.out.print("Enter Second String: ");
- second = input.nextLine();
- System.out.println("The lowercase of the first string is: " + first.toLowerCase());
- System.out.println("The uppercase of the first string is: " + first.toUpperCase());
- System.out.println("The lowercase of the second string is: " + second.toLowerCase());
- System.out.println("The uppercase of the second string is: " + second.toUpperCase());
- System.out.println("The length of the first string is: " + first.length());
- System.out.println("The length of the second string is: " + second.length());
- input.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement