Refactoring view1a so that JAVA can get the degrees

Just like view1b was refactored to let JAVA get the courses from SQL, I
refactored view1a to allow JAVA to get the program list