I have a line in file config.properties
clean=true
and use following code to get this property
private static String clean;
Properties prop = new Properties();
try {
    prop.load(new FileInputStream("config.properties"));
    clean = prop.getProperty("clean");
}
I use System.out.println(">"+clean+"<") to see the output and get ">true<", which indicates there is no blank, no \n
However, when I use
if (clean == "true") {          
    // program does not go here
}
else {
    // program goes here
}
what is the possible reason?...
 
     
    