Displaying temperature and pressure at the same time using java

brunopeniche:
the "ln" kind of finishes the line where the data is displayed, with the next values being displayed in the next paragraph?

Yes, and more "technically" it inserts a CR carriage return (to go back to the left) and a LF line feed (to click one line ahead) into the stream sent to the monitor.

Have a Google for the ascii table, and you will see character hex 0D, or decimal 13 is the CR and 0A or 10 is the LF.