Java Basics Tutorial – Part 3 – Console-Based Input and Output

Learn how to process console input and output in Java, how to read text and numbers and how to print formatted text and integers and floating-point values on the console.

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!

Practical 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:

Exercises: Problem Descriptions

Lesson Slides

Leave a Comment

Recent Posts

About SoftUni

SoftUni provides high-quality education, profession and job to people who want to learn coding.

The SoftUni Global “Learn to Code” Community supports learners with free learning resources, mentorship and community help.

Tags

Categories