In my project, I and taking four strings from text fields and putting them together in a different text field using the setText in Java. I need them to be in four different lines, but right now there are all in a line with no spaces between them
How do I break the line between the different strings.
I tried using the \n
, but I just got an error.
Here is the line of code I am using
display.setText(manu+brand+year+price);
which gives me this output
fordfocus20003500.0
I want
ford
focus
2000
3500.0
`between the variables, HTML tags might be supported. – Nir Alfasi Oct 01 '15 at 04:32