mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 22:15:15 +00:00
16 lines
458 B
Java
Executable file
16 lines
458 B
Java
Executable file
/* Lesson 4 Coding Activity Question 2 */
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class U2_L4_Activity_Two {
|
|
|
|
public static void main(String[] args) {
|
|
Scanner scan = new Scanner(System.in);
|
|
String str1 = scan.nextLine();
|
|
String str2 = new String(str1);
|
|
str1 = str1.toUpperCase();
|
|
str2 = str2.substring(0, 1).toUpperCase() + str2.substring(1);
|
|
System.out.println(str2);
|
|
System.out.println(str1);
|
|
}
|
|
}
|