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

Fixes #2739 

Restructure java code for feedback questions
Oh, sorry. At first glance they looked like the same piece of code, but now I realize that they are totally different (just the code layout that is similar). One is about the question and the other is about the response. I did not spot that earlier.