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

Share on facebook
Share on twitter
Share on linkedin
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 code lesson we continue with our Java programming video tutorial for absolute beginners. This is the third lesson from the Java tutorial, so if you are a newbie, you should first go through the previous lessons.

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!

Leave a Comment

Scroll to Top

Sign in

Don’t have an account? Register with us to join the community.