Unless you are practising basic java language constructs, the normal approach would be to..

1. Decide which data type(s) is central to the problem.

2. Find the class or classes within the Java...