here is a segment of code I can't get to work. I've run this through the project
builder debugger on mac os x and it doesn't go into the if and print "help"
when 's' and 'contentFlag" are equal. If I change it to 'if(s != contentFlag)"
it
goes into the if statement everytime as it should. I think there is something
with strings that i'm missing. Can someone help me out?
String contentFlag = "<-- :?: -->";
while ((s = templateFile.readLine()) != null)
{
s = s.trim();
if(s == contentFlag)
System.out.println("help");
// {
// System.out.println("<TD>");
// while ((s2 = contentFile.readLine()) != null)
// System.out.println(s2);
// System.out.println("</TD>");
// }
System.out.println(s);
System.out.println(contentFlag);
}