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.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.



Scroll to Top