Hey, how is everybody? Just having a small problem figuring out how to take the user's input and then output in alphabetical order. Here's what I have...
Quote:
String twoWords;
in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Press Enter Any 2 Words.");
twoWords = in.readLine();
I also need to display how many letters are in each word. I guess you would have to count the total amount of characters, and then count spaces, and then subtract the spaces from total characters.
Anyways, I'm still in the learning process, indeed. If someone knows the code, and can help me out, I'd really appreciate it. Thanks.
-Justin.