java programming homework 2015 [closed]

Since this is homework, I’ll give you a hint. If you’ve studied the Java Collections, you can stored the names in alphabetical order. If you’ve not got to collections yet, the you simply save them off as Strings as they come in.

When it’s time to display them in alphabetical order you could:
– sort them before you display them
– or brute force it. Loop thru your storage of names and display all the A’s. Then loop thru picking up the B’s.

As for counting vowels, look at the Java documentation for the methods that are on the String class. Hint – look for methods that return an “int”.

Leave a Comment