I have to write a method with the header:
public void duplicateTheBag()
This method copies the contents of the bag. For example if the bag had (a,b,c) and you used the duplicateTheBag() method, the bag would contain (a,b,c,a,b,c). The order does not matter.
This has the be in Java
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here