How do I shuffle two arrays in same order in java

前端 未结 6 752
温柔的废话
温柔的废话 2021-01-12 01:40

I\'ve got two arrays of question and answers

String questions[] = {
\"Q1?\",
\"Q2?\",
\"Q3?\"};

String answers[] = {
    \"A1?\",
    \"A2?\",
    \"A3?\"}         


        
6条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 01:50

    Create a class QuestionAndAnswer and use an array of that class.

提交回复
热议问题