if statement not working for color conditions
import java.awt.AWTException;
import java.awt.Robot;
public class TestColor {
public static void main(String [] args) throws AWTException {
Robot Bot = new Robot();
if(Bot.getPixelColor(1003, 185)==Bot.getPixelColor(1003, 185)) {
System.out.println("True");
}else {
System.out.println("False");
}
}
}
and i got a result of:
False