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
In questa pagina del sito puoi guardare il video online Java ☕ Printing della durata di ore minuti seconda in buona qualità , che l'utente ha caricato APMonitor.com 26 giugno 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,425 volte e gli è piaciuto 9 spettatori. Buona visione!