Consider the following class: public class Sequence { pri…
Consider the following class: public class Sequence { private ArrayList values; public Sequence() { values = new ArrayList(); } public void add(int n) { values.add(n); } public String toString() { return values.toString(); } } 3.1. Add a method public Sequence append(Sequence other) that creates a new sequence, appending this and the other sequence, without modifying […]
