I am getting the following error:
syntax error on token "else", delete this token
on the following code:
if (releaseLevel.equals("Released")){
String dcn = (String)JOptionPane.showInputDialog(null,
"What is the DCN, DCR or NMDD #",
"Identifier",
JOptionPane.QUESTION_MESSAGE,
null,
null,
"");
else dcn = null;
}//end of if
How do I get rid of this problem? It is doing it when I try to use if/else statements in my code. This is just one example, the other place can not be fixed by simply declaring the string to be null before the if.
Thank you,
Brian