considerfor examplethe following code fragmentsystem out print("java values")system out print( )system out print(',')system out print( )system out println((double,char,int")when executedthis fragment will output the following in the java console windowjava values , (double,char,intsimple input using the java util scanner class just as there is special object for performing output to the java console windowthere is also special objectcalled system infor performing input from the java console window technicallythe input is actually coming from the "standard inputdevicewhich by default is the computer keyboard echoing its characters in the java console the system in object is an object associated with the standard input device simple way of reading input with this object is to use it to create scanner objectusing the expression new scanner(system inthe scanner class has number of convenient included methods that read from the given input stream for examplethe following program uses scanner object to process inputimport java io *import java util scannerpublic class inputexample public static void main(string args[]throws ioexception scanner new scanner(system in)system out print("enter your height in centimeters")