Hi, I need to initialise a set in the constructor. I have a set that already contains some values called "numbers" but I need to initialise this set called "newNumbers" with the same values in the constructor. The code I have tried is:
Java Code
public PhoneBook()
{
super();
this.newNumbers = new TreeSet<Integer>();
this.newNumbers = numbers;
}
im a complete novice so im probably going about this the wrong way.
Thankyou in advance to anyone willing and able 2 help.