About 7,790,000 results
Open links in new tab
  1. Java use standard library without import - Stack Overflow

    Apr 29, 2020 · Is there a way to use the standard library class Scanner without an import statement? My professor is the type to include overly difficult problems that you are not …

  2. How get user input without using import.util.Scanner in java

    Perhaps you don't want to use the Scanner class? In that case, there are many other classes that can help you take the user input: https://stackoverflow.com/a/19532416. use like this …

  3. Java User Input (Scanner class) - W3Schools

    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 methods found in the …

  4. Scanner Class in Java - GeeksforGeeks

    Apr 11, 2025 · Steps To Use Scanner Class to Take Input. Step 1: First, import the java.uti.Scanner package in top of the program file Without importing this package, we can not …

  5. How can I use Scanner without importing class? – Heimduo

    Scanner is part of the java. util package, so it can be imported without downloading any external libraries. Scanner reads text from standard input and returns it to a program. How does …

  6. How the program could use class Scanner without importing

    Sep 16, 2023 · You could use the fully qualified name of the class instead of just "Scanner". For example: java.util.Scanner s = new Scanner(System.in);

  7. java - Is there any way to get input from a Scanner without

    Sep 16, 2020 · You could create a utility class, create static methods in that utility class and use a import static for methods in the utility class. Static method import allows you to use methods …

  8. Getting input from user in Console without using Scanner

    Apr 20, 2013 · Use this: BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); to create a reader for System.in, and you can use …

  9. java - Is there a way on getting Scanner input without having to

    Aug 31, 2015 · You don't have to use a Scanner to get input in Java. Scanner is just a high level class for parsing input while reading it. You can read from the static InputSteam System.in .

  10. java - Why is it necessary to import Scanner in both main and …

    Mar 1, 2022 · Here is using Scanner without import. This is the entire program. class n { public static void main(String... a) { java.util.Scanner s = new java.util.Scanner(System.in); int n = …

  11. Some results have been removed
Refresh