Are you asking about how to write a specific type of java program?
The first step would be to list all of the features you want the program to have.
Then work on the logic to implement those...