I am having an if loop which is highlighted below. The problem is that even though "secondentry" contains "literature", then also the if loop is entered which is not correct. Am i missing anything?
here is my code:-
if (strLine.contains(wID))
{
String splitarray[] = strLine.split("\t");
String firstentry = splitarray[0];
String secondentry = splitarray[1];
**if(secondentry!="literature")**
{
out.println ("Domain is: "+secondentry+"\n\n"+"<br/><br/>");
%>
<INPUT TYPE="radio" NAME="r<%=k%>" VALUE="<%=wordID%>">
<%
out.println("Gloss= "+word1.getSynset().getGloss()+"<br/><br/>");
%>
<%
}
}