Creating a method to remove ArrayList elements from index x to index y

Viewed 855

As the title says, if I'm creating a method to remove a section of an ArrayList, how would I go about this.

If I have ArrayList<Character> se = {'a','b','c','d','e','f','g'} and want to return only "abg" I would call this method as such:

remove(2,5);

How could I create this method to remove not only the arg indexes but also everything in between?

4 Answers
Related