Java input and output in the program

 The main Java this week learned how to input and output in the program, divided into the following three types:

A, text input and output interface

1. Class javva.util.Scanner

2. Use the in and out

 

Second, the graphical user interface input and output

1. Use the text box object to obtain the data entered by the user (the TextField)

2. Use the text box object label object or output data (the Lable)

3. Use the command button to execute the command (Button)

 

Third, the input and output of the Applet

1. AppletInOut.java

2. Use the function to handle specific events actionPerformed

 

Guess you like

Origin www.cnblogs.com/charles-s/p/11183629.html