String[] enrollment = {"first Value", "second value"}
int enroll = JOptionPane.showOptionDialog(null,
"Please select your enrollment:", "Enrollment",
JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null,
enrollment, enrollment[1]);
How can I get the value from enroll
(like first Value) and compare it in a if statement? Since enroll returns an integer variable.
I dont think this question is a duplicate as marked because I am just trying to get the value inside the integer, store it and compare later.