Java is not limited to the command line for obtaining data from the user. This example shows how to create pop up dialog boxes to request and user input.
Click on the screenshot to enlarge the image for easier reading.
Note: This just shows how to begin working with simple dialog boxes. It does not how the error trapping which would be needed to protect your code from unexpected input.