Hola a todos.
El problemas que tengo esque me quedan espacios en blanco cuando no cumplen el if y yo quiero que si no lo cumplan solo se eliminen 
captura: 
 
 
codigo: 
Código:
 void chocolatesConPreciosSuperioresAlPrecioPromedio(){
		String tipo0 = "" , tipo1 = "", tipo2 = "", tipo3 = "", tipo4 = "";
		prepro = (Tienda.precio0 + Tienda.precio1 + Tienda.precio2 + Tienda.precio3 + Tienda.precio4) / 5 ;
		
		
		if ( Tienda.precio0 > prepro)
			tipo0 = Tienda.tipo0;
		if ( Tienda.precio1 > prepro)
			tipo1 = Tienda.tipo1;
		if ( Tienda.precio2 > prepro)
			tipo2 = Tienda.tipo2;
		if ( Tienda.precio3 > prepro)
			tipo3 = Tienda.tipo3;
		if ( Tienda.precio4 > prepro)
			tipo4 = Tienda.tipo4;
		txtS.setText(" CHOCOLATES CON PRECIOS SUPERIORES AL PRECIO PROMEDIO" + "\n\n");
		txtS.append( tipo0 + "\n" + tipo1 + "\n" + tipo2 + "\n" + tipo3 + "\n" + tipo4 + "\n");
		txtS.append(" Precio promedio : S/." + prepro + "\n" );
	}
  Saludos.