All,
I'm very new to java having done most of my scripting in Javascript and a little bit in other types of programs.
I'm basically trying to obtain a script variable and compare it against a condition and return some println messages. Here is my code:
String agentType[] = request.getParameterValues("Agent Flag");
if (agentType[] != null && agentType[].length != 0 ) {
System.out.println("You have selected");
}
else {
System.out.println("You have not selected");
}
I'm getting the illegal start of type error message on the if line.
Any help will be greatly appreciated.