Having an issue when trying to compare strings in If statement.
private String browser = XMLreader.getData("browser");
if (browser == "chrome"){
System.out.println(browser);
} // Will not print anything
if (browser != "chrome"){
System.out.println(browser);
} // Will print chrome
Any idea what am I missing?
Thanks