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
Nesta página do site você pode assistir ao vídeo on-line Java ☕ Printing duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário APMonitor.com 26 Junho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,425 vezes e gostou 9 espectadores. Boa visualização!