I created an ArrayList just for the sprites that needs to be removed, when the sprites are touched they are added to the ArrayList.
//drawing the enemy that spawns and making them move
public void draw(SpriteBatch batch){
for(Sprite drawEnemy:enemies) {
drawEnemy.draw(batch);
drawEnemy.translateY(deltaTime * movement);
touchInput(drawEnemy.getX(),drawEnemy.getWidth(),drawEnemy);//2nd method
}
}
public void touchInput(float x,float w,Sprite sprite){
float touchX=Gdx.input.getX();
if(Gdx.input.justTouched()){
if(touchX > x && touchX < x+w ){
removeEne.add(sprite);// Adding the current Sprite to the array list when touched
} //removeEne is my ArrayList
}
}