Accepting user inputs from console in Java

Hey there!

Welcome to

In this post, we will look at a Java program to accept inputs from the console and print them back to the output.

This can be achieved using the Scanner class defined in java.util package.


Here is the Java program:








Happy learning :).

Please leave a reply in case of any queries.

Leave a Reply

Your email address will not be published. Required fields are marked *