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
На этой странице сайта вы можете посмотреть видео онлайн Java ☕ Printing длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь APMonitor.com 26 Июнь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,425 раз и оно понравилось 9 зрителям. Приятного просмотра!