Input and Output Functions

There are several ways in java programming to get data from the user and to display data.  One way to display data is
to use a method called print or a function called println.  Both of these methods displays data to the command prompt and they come from the System.out class library.  The System.out class library does not need to be imported into a java program.  The difference between the System.out.print() method and the System.out.println() method is that the println method begins a new line after the text has been displayed.  The syntax for both methods is

System.out.print(“text” + data_variable);