MissouriTiger
Programmer
Is anything visibly wrong with this code? I'm getting errors I can't figure out.
package com.gregnorris.messaging;
/**
* File: IMCommunity
* Author: Greg Norris
* Description: IMCommunity object serves as a container to hold the users.
* Each user is identifiable by a unique username.
*
*/
public class IMCommunity
{
public IMCommunity()
{
Map Community = new HashMap();
Community.putAll(Map t);
}
public void addUser(String username, IMUser user)
{
Community.put(username, user);
}
public IMUser getUser(String username, IMUser user)
{
return (Community.get(username));
}
public void deleteUser(String username)
{
Community.remove(username);
}
}
package com.gregnorris.messaging;
/**
* File: IMCommunity
* Author: Greg Norris
* Description: IMCommunity object serves as a container to hold the users.
* Each user is identifiable by a unique username.
*
*/
public class IMCommunity
{
public IMCommunity()
{
Map Community = new HashMap();
Community.putAll(Map t);
}
public void addUser(String username, IMUser user)
{
Community.put(username, user);
}
public IMUser getUser(String username, IMUser user)
{
return (Community.get(username));
}
public void deleteUser(String username)
{
Community.remove(username);
}
}