using java on mac

Write a program that does the following: main) calls a method to print a heading for a table. Use a file called names.txt for the input. It contains up to 15 full names in the form “first last”. main () calls a method to read the full names into an array For each name in the array: . main ( breaks up the name into first and last.