Html to console

How do I save my html construct on to google java console?
Found the answer ta