mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 22:15:15 +00:00
15 lines
471 B
Java
Executable file
15 lines
471 B
Java
Executable file
/* Lesson 3 Coding Activity Question 3 */
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class U2_L3_Activity_Three {
|
|
|
|
public static void main(String[] args) {
|
|
Scanner scan = new Scanner(System.in);
|
|
System.out.println("Enter first word:");
|
|
String one = scan.nextLine().toLowerCase();
|
|
System.out.println("Enter second word:");
|
|
String two = scan.nextLine().toLowerCase();
|
|
System.out.println("Result: " + one.compareTo(two));
|
|
}
|
|
}
|