You are calling getSelectedIndex()
on a String[]
(roomChoice
), but arrays don't have a method by that name. So, it is telling you it can't find that method.
I believe you meant to do cbox1.getSelectedIndex()
. The same applies for activityChoice
and cbox2
.