Remove First And Last Element From Array To Arraylist