Home Segments Top Top Previous Next

42: Mainline

The display methods, print and println, display information delimited by parentheses. Whenever you use println instead of print, Java not only displays information, but also terminates the line on which the information is displayed.