title: Can Android Studio remove multiple elements from an array? How?
body: <p>I'm practice developing an app but I met a problem. I want remove two elements from an array but android studio only can remove one and if I adding one more the app will crash, below is my code and now I only put one code to remove the first element and i need to remove last element otherwise the choice for answer will mix the array.</p>
  
  <pre><code>ArrayList&lt;ArrayList&lt;String&gt;&gt; quizArray = new ArrayList&lt;&gt;();
  
  String quizData[][] = {
          {"quadrilateral","quadrilateral","triangle","heptagon","pentagon","hexagon","decagon","Which one is the green polygon just now ?"},
          {"triangle","triangle","heptagon","quadrilateral","pentagon","octagon","decagon","Which one is the red polygon just now ?"},
          {"circle","circle","triangle","quadrilateral","pentagon","nonagon","decagon","Which one is the black polygon just now ?"},
          {"star","star","circle","octagon","pentagon","hexagon","decagon","Which one is the brown polygon just now ?"},
          {"decagon","decagon","triangle","circle","pentagon","hexagon","star","Which one is the pink polygon just now ?"},
          {"heptagon","heptagon","decagon","quadrilateral","pentagon","hexagon","star","Which one is the yellow polygon just now ?"},
          {"hexagon","hexagon","decagon","heptagon","pentagon","octagon","star","Which one is the sky blue polygon just now ?"},
          {"nonagon","nonagon","circle","quadrilateral","triangle","hexagon","star","Which one is the orange polygon just now ?"},
          {"pentagon","pentagon","nonagon","octagon","heptagon","hexagon","circle","Which one is the purple polygon just now ?"},
          {"octagon","octagon","triangle","quadrilateral","pentagon","hexagon","star","Which one is the dark blue polygon just now ?"}
  };
  
  public void Show_Next_Quiz(){
  
          Random random = new Random();
          int Random_Num = random.nextInt(quizArray.size());
  
          ArrayList&lt;String&gt; quiz = quizArray.get(Random_Num);
  
          Question1.setText(quiz.get(7));
  
      iV1.setImageResource(
              getResources().getIdentifier(quiz.get(0), "drawable", getPackageName())
      );
      iV2.setImageResource(
              getResources().getIdentifier(quiz.get(0), "drawable", getPackageName())
      );
      iV3.setImageResource(
              getResources().getIdentifier(quiz.get(0), "drawable", getPackageName())
      );
      iV4.setImageResource(
              getResources().getIdentifier(quiz.get(0), "drawable", getPackageName())
      );
      iV5.setImageResource(
              getResources().getIdentifier(quiz.get(0), "drawable", getPackageName())
      );
      iV6.setImageResource(
              getResources().getIdentifier(quiz.get(0), "drawable", getPackageName())
      );
  
          Right_Answer = quiz.get(1);
          quiz.remove(0);
          //quiz.remove(7);
  
          Collections.shuffle(quiz);
  
          ans1.setText(quiz.get(1));
          ans2.setText(quiz.get(2));
          ans3.setText(quiz.get(3));
          ans4.setText(quiz.get(4));
          ans5.setText(quiz.get(5));
          ans6.setText(quiz.get(6));
  
          quizArray.remove(Random_Num);
  
  }
  </code></pre>