java - register problem
- by Jake
Hi!
When i try to register a person with the name Eric for example, and then again registrating Eric it works. This should not happen with the code i have. Eric should not be registrated if theres already an Eric in the list. Here is my full code:
import java.util.*;
import se.lth.cs.pt.io.*;
class Person {
private String name;
private…