In my below code i check the two infocode
if it exist show msg
MSG_SAME_INFO_ALREADY_EXISTS
but the issue is that when i compare two infocode
the infocode value is same but it cannot enter the loop .
What i am wrong in below code ?
if (folderInfoData.getFolderInforecord().getInfoCode() == map.get("infoCode")) {
showError(pageResourceBundle.getText("MSG_SAME_INFO_ALREADY_EXISTS"));
return;
}
Both Debug value given below :
the both folderInfoData.getFolderInforecord().getInfoCode()
and map.get("infoCode")
infocode return integer given below.
Can anyone tell me how can resolve this issue ?
Thanks