Java ☕ Printing

Published: 26 June 2020
on channel: APMonitor.com
1,425
9

In the early days of computers, users didn't interact with the computer through a screen, as we do now. Instead, the computer would output information with a physical printer with paper.

Nowadays, we don't need to print to a physical printer. Instead, output is printed to a console on the computer. The console acts like a virtual printer and can print out whatever you tell it to. In addition to writing output, the user can type commands for the computer directly into the console. Because of this, the console is a fundamental and powerful way for programmers to interact with the computer.

The console in Eclipse displaying the output 'Hello World'

Printing in Java
Every programming language has it's own built in way of printing information to the console. In Java, this is done with the statement System.out.println(); Inside the parentheses, you write the information you want the program to print, for instance,

System.out.println("Hello World!");
will cause the computer to print the following to the console.

Hello World!
Try it out for yourself! In a Java project in your IDE, type System.out.println("Hello World!"); then run your project. Try it again, this time replacing "Hello World!" with your own text.



Java Course: https://apmonitor.github.io/begin_java
Course Overview: https://apmonitor.com/che263/index.ph...
Source Code: https://github.com/APMonitor/begin_java
Temperature Control Lab: https://apmonitor.com/heat.htm


On this page of the site you can watch the video online Java ☕ Printing with a duration of hours minute second in good quality, which was uploaded by the user APMonitor.com 26 June 2020, share the link with friends and acquaintances, this video has already been watched 1,425 times on youtube and it was liked by 9 viewers. Enjoy your viewing!