What is the best way to add strings to a textview in a for loop. I am using textview.settext and it overwrites the previous string : What is the best way to add strings to a textview in a for loop? I am using the method "setText and it's overwriting the previous string rather than adding to.
Here is my code below:

     
     List<PlaceLikelihood> placeLikelihoodList = placesResult.getPlaceLikelihoods();
     int hospitalType = Place.TYPE_HOSPITAL;
    
      if (placeLikelihoodList != null) {
          for (int i = 0; i <placeLikelihoodList.size(); i++){
          PlaceLikelihood p = placeLikelihoodList.get(i);
          List<Integer> types = p.getPlace().getPlaceTypes();}
           
       if (types.get(0).equals(hospitalType)) {
           groceryStoreTextView.setText(p.getPlace().getName().toString());
        }
      }
    
     }   


