how i can do this in java main and class point

Printable View