I have created a web project in eclipse, which works fine, but when i add the Hashmap it gives me the error The type Java.util.Map$Entry canot be resolved.
I have seen many discussions on the same issue but could not get a solution. Can someone help me please.
package com.balu.loginApp.bean;
import java.util.HashMap; import java.util.Map;
public class LoginAuthenitication {
Map<String, String> users = new HashMap<String, String>();
public LoginAuthenitication()
{
users.put("balu", "Balamurali CL");
users.put("swathi", "Swathi RL");
}
public boolean loginAuthenitications(String userName, String passWord)
{
if (passWord== null || passWord.trim() == "")
{
return false;
}
else
return true;
}
Aucun commentaire:
Enregistrer un commentaire