In this lesson, Svetlin Nakov teaches how to read and work with console-based input and output. Learn how to read strings and numbers from the standard input and how to format and print text, numbers and other data to the standard output.
Svetlin Nakov demonstrates several ways to use a console for user input and output in Java. Learn how to use the console API in Java: java.util.Scanner, System.in, System.out and System.out.print(), System.out.print() and System.out.printf() with placeholders.
As you know, our free code lessons are not just video tutorials. They combine videos with many live examples and practical hands-on exercises, where you write code after each lesson. So, you learn Java coding through practice: by writing Java code. And you send your code to our online judge system, and you get an instant automated grading.
Remember that coding is a skill, which should be practiced. To learn to code, you should write code, every day, for a long time. Watching tutorials is not enough. You should code! Now it’s your turn. Do your exercises!
Watch the video and solve the problems. To better understand the material, do the coding exercises and implement the knowledge you acquired. Writing code is the only way to master the skill of code.
Submit your code in the SoftUni Judge System: