I am still somewhat new to Java programming and I have been given an assignment that asks to read names from a file and print them out that start with a letter lexicographically less than or equal to M followed by all of the names that start with a letter greater than M. Is there anyone that can help me with this?
An example would be that the file would contain
Fred Jane
Sam
Bill Nancy
and the print out on the screen would be:
1 Fred
2 Jane
3 Bill
4 Sam
5 Nancy