When I extract tooltiptext using getText() method, output
comes in three lines:
outside
temperature
20c
But how to compare extracted 20c to another string 30c?
My approach:
if (tooltiptext.getText() > 30c) {
System.out.println("temperature is too low outside");
} else {
System.out.println("temperature is hot outside");
}