I'm not experienced in Java, and I have a problem.
Using Jsoup, I have an element called td. If I do:
String attr = td.attr("class");
System.out.println(attr);
The output is "free", which is perfectly alright. If I do:
String attr = td.attr("class");
if (attr == "free") {
System.out.println("freedom!");
}
There is no output!
Does anyone know how to solve this problem?
Thanks in advance.