Cannot switch on a value of type Object. Only convertible int values, strings or enum variables are permitted
I'm trying to hide and option using switch statement but this is the error i...
Type: Posts; User: cloudracer
Cannot switch on a value of type Object. Only convertible int values, strings or enum variables are permitted
I'm trying to hide and option using switch statement but this is the error i...
Strange. after deleting those two lines and making the variables final it works but only when i input the accom1 combobox first and then the dest1 combobox after.
Edit: after reading through that...
Thanks but how would i refer directly to the JComboBoxes? (Sorry I'm a beginner)
I'm trying to get the input of several JComboBoxes and execute a statement depending on which option the user chose for example if destination combo Box = japan duration combo box = 10 days and ...