About 26,200,000 results
Open links in new tab
  1. Java - Print hello and your name on a separate line - w3resource

    Apr 1, 2025 · System.out.print ("Input your first name: ");: This code prints a message to the console, asking the user to input their first name. String fname = input.next ();: This code reads …

  2. Java IO : Input-output in Java with Examples | GeeksforGeeks

    Jan 16, 2025 · Java brings various Streams with its I/O package that helps the user to perform all the input-output operations. These streams support all the types of objects, data-types, …

  3. Java User Input (Scanner class) - W3Schools

    Java User Input. The Scanner class is used to get user input, and it is found in the java.util package. To use the Scanner class, create an object of the class and use any of the available …

  4. Java Basic Input and Output - Programiz

    In this tutorial, you will learn simple ways to display output to users and take input from users in Java. We will use the print() method to display output and the Scanner class to take input. …

    Missing:

    • Name

    Must include:

  5. java - Using Scanner to ask for your name - Stack Overflow

    System.out.print("Please enter your name: "); usersName = java.util.Scanner; System.out.println("Hello, " + usersName! "); Scanner doesn't represent the String itself. It's an …

  6. User Input and Output in Java with Examples - Dot Net Tutorials

    In this article, I am going to discuss User Input and Output in Java with Examples. Please read our previous article, where we discussed Methods in Java with examples. At the end of this …

  7. Java program to print your name | Java Exercise | Proleed

    Discover a Java program to print your name under Java exercise. Enhance your coding skills with this practical exercise from Proleed.

  8. Java User Input – Scanner Class - GeeksforGeeks

    Apr 22, 2025 · The most common way to take user input in Java is using the Scanner class. It is a part of java.util package. The scanner class can handle input from different places, like as we …

  9. Mastering Console Input and Output in Java - CoderSathi

    Aug 13, 2021 · In this guide, we’ll learn the detail of console input and output in Java with example. What is Console Input and Output in Java? Before we dive into the specifics, let’s …

  10. Java Basic Input and Output - Coding Shuttle

    Apr 9, 2025 · In this blog, we'll focus on the basics of console-based I/O using the Scanner class for input and System.out.println() for output. 1. Basic Output with System.out.println() The …

  11. Some results have been removed
Refresh