How to link two classes in java to use it method

Printable View