How do i write this in java...?

Printable View