@@ -0,0 +1,809 @@
+import java.util.Scanner;%0A%0A/**%0A * This program demonstrates the %3Ccode%3EcompareTo()%3C/code%3E method of the String class%0A **/%0Apublic class Comparing_Strings %7B%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(%22Comparing Strings%22);%0A        Scanner scanner = new Scanner(System.in);%0A%0A        System.out.println(%22First word?%22);%0A        String word1 = scanner.nextLine();%0A        %0A        System.out.println(%22Second word?%22);%0A        String word2 = scanner.nextLine();%0A%0A        if (word1.compareTo(word2) %3C 0) %7B%0A            System.out.println(word1 + %22 is less than %22 + word2);%0A        %7D else if (word1.compareTo(word2) == 0) %7B%0A            System.out.println(word1 + %22 is equal to %22 + word2);%0A        %7D else %7B%0A            System.out.println(word1 + %22 is greater than %22 + word2);%0A        %7D%0A    %7D%0A%7D%0A

Add problem 1 to unit 3