// // ... // Goal: read two strings and find the bigger import java.util.Scanner; public class FinfBig { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Input two words: "); String s1 = input.next(); String s2 = input.next(); if(s1.compareTo(s2)<0) System.out.println("ascending order: " + s1 + " " + s2); else System.out.println("ascending order: " + s2 + " " + s1); System.out.println("\n\nBye.\n\n"); } }