Display string on page xhtml

37 views Asked by At

I have this code:

if (comparingList.size()<3)
{

return "text1" + "text2" + "text3 ";

}

I want to display this text on page *.xhtml in this style:

text1 text2
text3

How can I do that?

1

There are 1 answers

0
AudioBubble On BEST ANSWER

It's simple! You must change this return "text1" + "text2" + "text3 ";
to this return "text1" + "text2<br/>" + "text3 ";