Displaying temperature and pressure at the same time using java

Post the code.