Restructure code for feedback session questions (Java code) #2739

Fixes #2739 

Restructure java code for feedback questions
Not that I can think of, since the functions have different parameters and return values. Reflection could be used to remove the switch statements though.