Once you have a PrintWriter instance, you can write strings to that stream, using the print and println methods.
PrintWriter
print
println