185k views
1 vote
2. Create a Java program that asks the user for three words

using the Scanner class. The program should display
those words in alphabetical order.

User Meisha
by
8.4k points

1 Answer

2 votes

Step-by-step explanation:

import java.util.Scanner; · public class Alphabetical_Order · { · public static void main(String[] args) · { · int n; · String temp; · Scanner s = new Scanner(System.

User Pedro Paulo Amorim
by
7.9k points