Why "==" or equals method doesn't work ?
String levelSetting = ManageLogFile.getLevel();
if (levelSetting != Log.Level.DEBUG.toString()) {
System.out.println(Log.Level.DEBUG.toString());
System.out.println(levelSetting);
log.setData(null);
}
With Result displayed :
DEBUG
DEBUG
It's the same String... But != doesn't work... I have also tried with equals method.. and same problem I have compare lenght and it's 5 for both.