Creating input output using applet: – Applet work in a graphical environment. There for, applet treat input as text string. We must first create an area of the screen in which user can type and edit input item. We can do this by using the TextField class of the applet package. Once text fields are created for receiving input, we can type the values in the fields and edit them, if necessary.

Next step is to retrieved the item from the fields for display od calculation, if any. Remember the text field contains item in string form. They need to be converted to the right form, before they are used in any computation.