1.)write a code segment that uses an I/O dialog box to prompt the user for her name.
2.)write a code segment that display your name and address in a message box, name an address should be formatted on separate lines by using the “\n” character.
3.)why we need to used the methods Integer.parseInt and Double.parseDouble when receiving numeric input from an I/O dialog box.
4.)give an example of a situation where you would want a panel to set its preferred size, rather than allow the size of the main window to determine that.
Advertisement