title: How to show generated password in list
body: <pre><code>btnGenerateNums.setOnClickListener(new View.OnClickListener() {
  
              @Override
          public void onClick(View v) {
              tvGeneratedNums.setText("");
              tvResultInTextView.setVisibility(View.GONE);
              tvResultInListView.setVisibility(View.GONE);
              mList.clear();
              if(isValid())
                  {
                  tvResultInTextView.setVisibility(View.VISIBLE);
                  tvResultInListView.setVisibility(View.VISIBLE);
                  RandomNumGenerator mRandomNumGen = new RandomNumGenerator(start,end);
                  for(int i=0;i&lt;=end-start;i++)
                           {
  
                      int k = mRandomNumGen.generateNewRandom(i);
  
                      mList.add(k);
  
                  }
                  if(tvGeneratedNums.getText().toString().endsWith(","))
                  {
                      tvGeneratedNums.setText(tvGeneratedNums.getText().toString().substring(0, tvGeneratedNums.getText().toString().length()-1));
                  }
  
              }
              mAdapter = new ArrayAdapter&lt;Integer&gt;(mContext, android.R.layout.simple_list_item_1, mList);
              lvGeneratedNums.setAdapter(mAdapter);
  
  
              }
      });
  </code></pre>
  
  <p>I want to show my generated password into list view so I write this but this give me only one number like this</p>
  
  <p>3</p>
  
  <p>5</p>
  
  <p>10</p>
  
  <p>6</p>
  
  <p>9</p>
  
  <p>8</p>
  
  <p>But what I want is </p>
  
  <p>3  5  10  6  9  8</p>
  
  <p>8 10  6  9  3  5</p>
  
  <p>5  10  9  8  3  6</p>
  
  <p>9  5  6  10  3  8 </p>
  
  <p>And so on...</p>