need no suffix literals of type long use suffix (as in )literals of the other integer types need no suffix java is more strongly typed than and ++many conversions that were automatic in those languages require an explicit cast in java all types not shown in table such as stringare classes input/output for the console-mode applications we'll be using for example programs in this booksome clunky-looking but effective constructions are available for input and output they're quite different from the workhorse cout and cin approach in +and printf(and scanf(in all the input/output routines we show here require the line import java io *at the beginning of your source file output you can send any primitive type (numbers and characters)and string objects as wellto the display with these statementssystem out print(var)system out println(var)/displays varno linefeed /displays varthen starts new line the first statement leaves the cursor on the same linethe second statement moves it to the beginning of the next line because output is bufferedyou'll need to use println(method as the last statement in series to actually display everything it causes the contents of the buffer to be transferred to the displaysystem out print(var )system out print(var )system out println(var )displayed /nothing appears /nothing appears /var var and var are all you can also use system out flush(to cause the buffer to be displayed without going to new linesystem out print("enter your name")system out flush()inputting string input is considerably more involved than output in generalyou want to read any input as string object if you're actually inputting something elsesuch as character or numberyou then convert the string object to the desired type